// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-net-URLClassLoader"))]
__jni_bindgen! {
/// public class [URLClassLoader](https://developer.android.com/reference/java/net/URLClassLoader.html)
///
/// Required feature: "java-net-URLClassLoader"
public class URLClassLoader ("java/net/URLClassLoader") extends crate::java::security::SecureClassLoader {
/// [URLClassLoader](https://developer.android.com/reference/java/net/URLClassLoader.html#URLClassLoader(java.net.URL%5B%5D))
///
/// Required features: "java-net-URL"
#[cfg(any(feature = "all", all(feature = "java-net-URL")))]
pub fn new_URL_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::net::URL, crate::java::lang::Throwable>>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::net::URLClassLoader>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/URLClassLoader", java.flags == PUBLIC, .name == "<init>", .descriptor == "([Ljava/net/URL;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/URLClassLoader\0", "<init>\0", "([Ljava/net/URL;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [URLClassLoader](https://developer.android.com/reference/java/net/URLClassLoader.html#URLClassLoader(java.net.URL%5B%5D,%20java.lang.ClassLoader))
///
/// Required features: "java-lang-ClassLoader", "java-net-URL"
#[cfg(any(feature = "all", all(feature = "java-lang-ClassLoader", feature = "java-net-URL")))]
pub fn new_URL_array_ClassLoader<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::net::URL, crate::java::lang::Throwable>>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::ClassLoader>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::net::URLClassLoader>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/URLClassLoader", java.flags == PUBLIC, .name == "<init>", .descriptor == "([Ljava/net/URL;Ljava/lang/ClassLoader;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/URLClassLoader\0", "<init>\0", "([Ljava/net/URL;Ljava/lang/ClassLoader;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [URLClassLoader](https://developer.android.com/reference/java/net/URLClassLoader.html#URLClassLoader(java.net.URL%5B%5D,%20java.lang.ClassLoader,%20java.net.URLStreamHandlerFactory))
///
/// Required features: "java-lang-ClassLoader", "java-net-URL", "java-net-URLStreamHandlerFactory"
#[cfg(any(feature = "all", all(feature = "java-lang-ClassLoader", feature = "java-net-URL", feature = "java-net-URLStreamHandlerFactory")))]
pub fn new_URL_array_ClassLoader_URLStreamHandlerFactory<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::net::URL, crate::java::lang::Throwable>>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::ClassLoader>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::URLStreamHandlerFactory>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::net::URLClassLoader>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/URLClassLoader", java.flags == PUBLIC, .name == "<init>", .descriptor == "([Ljava/net/URL;Ljava/lang/ClassLoader;Ljava/net/URLStreamHandlerFactory;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/URLClassLoader\0", "<init>\0", "([Ljava/net/URL;Ljava/lang/ClassLoader;Ljava/net/URLStreamHandlerFactory;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [findResources](https://developer.android.com/reference/java/net/URLClassLoader.html#findResources(java.lang.String))
///
/// Required features: "java-lang-String", "java-util-Enumeration"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-Enumeration")))]
pub fn findResources<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Enumeration>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/URLClassLoader", java.flags == PUBLIC, .name == "findResources", .descriptor == "(Ljava/lang/String;)Ljava/util/Enumeration;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/URLClassLoader\0", "findResources\0", "(Ljava/lang/String;)Ljava/util/Enumeration;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getURLs](https://developer.android.com/reference/java/net/URLClassLoader.html#getURLs())
///
/// Required features: "java-net-URL"
#[cfg(any(feature = "all", all(feature = "java-net-URL")))]
pub fn getURLs<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::net::URL, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/URLClassLoader", java.flags == PUBLIC, .name == "getURLs", .descriptor == "()[Ljava/net/URL;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/URLClassLoader\0", "getURLs\0", "()[Ljava/net/URL;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [newInstance](https://developer.android.com/reference/java/net/URLClassLoader.html#newInstance(java.net.URL%5B%5D))
///
/// Required features: "java-net-URL", "java-net-URLClassLoader"
#[cfg(any(feature = "all", all(feature = "java-net-URL", feature = "java-net-URLClassLoader")))]
pub fn newInstance_URL_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::net::URL, crate::java::lang::Throwable>>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::URLClassLoader>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/URLClassLoader", java.flags == PUBLIC | STATIC, .name == "newInstance", .descriptor == "([Ljava/net/URL;)Ljava/net/URLClassLoader;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/URLClassLoader\0", "newInstance\0", "([Ljava/net/URL;)Ljava/net/URLClassLoader;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [newInstance](https://developer.android.com/reference/java/net/URLClassLoader.html#newInstance(java.net.URL%5B%5D,%20java.lang.ClassLoader))
///
/// Required features: "java-lang-ClassLoader", "java-net-URL", "java-net-URLClassLoader"
#[cfg(any(feature = "all", all(feature = "java-lang-ClassLoader", feature = "java-net-URL", feature = "java-net-URLClassLoader")))]
pub fn newInstance_URL_array_ClassLoader<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::net::URL, crate::java::lang::Throwable>>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::ClassLoader>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::URLClassLoader>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/URLClassLoader", java.flags == PUBLIC | STATIC, .name == "newInstance", .descriptor == "([Ljava/net/URL;Ljava/lang/ClassLoader;)Ljava/net/URLClassLoader;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/URLClassLoader\0", "newInstance\0", "([Ljava/net/URL;Ljava/lang/ClassLoader;)Ljava/net/URLClassLoader;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [findResource](https://developer.android.com/reference/java/net/URLClassLoader.html#findResource(java.lang.String))
///
/// Required features: "java-lang-String", "java-net-URL"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-net-URL")))]
pub fn findResource<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::URL>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/URLClassLoader", java.flags == PUBLIC, .name == "findResource", .descriptor == "(Ljava/lang/String;)Ljava/net/URL;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/URLClassLoader\0", "findResource\0", "(Ljava/lang/String;)Ljava/net/URL;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}