[]Struct jni_android_sys::java::net::URLClassLoader

#[repr(transparent)]
pub struct URLClassLoader(_);

public class URLClassLoader

Required feature: "java-net-URLClassLoader"

Methods

impl URLClassLoader

pub fn new_URL_array_ClassLoader<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ObjectArray<URL, Throwable>>>,
    arg1: impl Into<Option<&'env ClassLoader>>
) -> Result<Local<'env, URLClassLoader>, Local<'env, Throwable>>
[src]

URLClassLoader

Required features: "java-lang-ClassLoader", "java-net-URL"

pub fn new_URL_array<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ObjectArray<URL, Throwable>>>
) -> Result<Local<'env, URLClassLoader>, Local<'env, Throwable>>
[src]

URLClassLoader

Required features: "java-net-URL"

pub fn new_URL_array_ClassLoader_URLStreamHandlerFactory<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ObjectArray<URL, Throwable>>>,
    arg1: impl Into<Option<&'env ClassLoader>>,
    arg2: impl Into<Option<&'env URLStreamHandlerFactory>>
) -> Result<Local<'env, URLClassLoader>, Local<'env, Throwable>>
[src]

URLClassLoader

Required features: "java-lang-ClassLoader", "java-net-URL", "java-net-URLStreamHandlerFactory"

pub fn getResourceAsStream<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
[src]

getResourceAsStream

Required features: "java-io-InputStream", "java-lang-String"

pub fn close<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn getURLs<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<URL, Throwable>>>, Local<'env, Throwable>>
[src]

getURLs

Required features: "java-net-URL"

pub fn findResource<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, URL>>, Local<'env, Throwable>>
[src]

findResource

Required features: "java-lang-String", "java-net-URL"

pub fn findResources<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Enumeration>>, Local<'env, Throwable>>
[src]

findResources

Required features: "java-lang-String", "java-util-Enumeration"

pub fn newInstance_URL_array_ClassLoader<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ObjectArray<URL, Throwable>>>,
    arg1: impl Into<Option<&'env ClassLoader>>
) -> Result<Option<Local<'env, URLClassLoader>>, Local<'env, Throwable>>
[src]

newInstance

Required features: "java-lang-ClassLoader", "java-net-URL", "java-net-URLClassLoader"

pub fn newInstance_URL_array<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ObjectArray<URL, Throwable>>>
) -> Result<Option<Local<'env, URLClassLoader>>, Local<'env, Throwable>>
[src]

newInstance

Required features: "java-net-URL", "java-net-URLClassLoader"

Trait Implementations

impl AsJValue for URLClassLoader

impl AsRef<Closeable> for URLClassLoader

impl AsValidJObjectAndEnv for URLClassLoader

impl Deref for URLClassLoader

type Target = SecureClassLoader

The resulting type after dereferencing.

impl JniType for URLClassLoader

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.