// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-io-File"))]
__jni_bindgen! {
/// public class [File](https://developer.android.com/reference/java/io/File.html)
///
/// Required feature: "java-io-File"
public class File ("java/io/File") extends crate::java::lang::Object, implements crate::java::io::Serializable, crate::java::lang::Comparable {
/// [File](https://developer.android.com/reference/java/io/File.html#File(java.io.File,%20java.lang.String))
///
/// Required features: "java-io-File", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-io-File", feature = "java-lang-String")))]
pub fn new_File_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::File>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::io::File>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/io/File;Ljava/lang/String;)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/io/File\0", "<init>\0", "(Ljava/io/File;Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [File](https://developer.android.com/reference/java/io/File.html#File(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::io::File>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "<init>\0", "(Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [File](https://developer.android.com/reference/java/io/File.html#File(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::io::File>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)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/io/File\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [File](https://developer.android.com/reference/java/io/File.html#File(java.net.URI))
///
/// Required features: "java-net-URI"
#[cfg(any(feature = "all", all(feature = "java-net-URI")))]
pub fn new_URI<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::URI>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::io::File>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/net/URI;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "<init>\0", "(Ljava/net/URI;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [listRoots](https://developer.android.com/reference/java/io/File.html#listRoots())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn listRoots<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::io::File, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC | STATIC, .name == "listRoots", .descriptor == "()[Ljava/io/File;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/io/File\0", "listRoots\0", "()[Ljava/io/File;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [canExecute](https://developer.android.com/reference/java/io/File.html#canExecute())
pub fn canExecute<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "canExecute", .descriptor == "()Z"
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/io/File\0", "canExecute\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [canRead](https://developer.android.com/reference/java/io/File.html#canRead())
pub fn canRead<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "canRead", .descriptor == "()Z"
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/io/File\0", "canRead\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [canWrite](https://developer.android.com/reference/java/io/File.html#canWrite())
pub fn canWrite<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "canWrite", .descriptor == "()Z"
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/io/File\0", "canWrite\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [compareTo](https://developer.android.com/reference/java/io/File.html#compareTo(java.io.File))
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn compareTo_File<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::File>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "compareTo", .descriptor == "(Ljava/io/File;)I"
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/io/File\0", "compareTo\0", "(Ljava/io/File;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [delete](https://developer.android.com/reference/java/io/File.html#delete())
pub fn delete<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "delete", .descriptor == "()Z"
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/io/File\0", "delete\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [deleteOnExit](https://developer.android.com/reference/java/io/File.html#deleteOnExit())
pub fn deleteOnExit<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "deleteOnExit", .descriptor == "()V"
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/io/File\0", "deleteOnExit\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [equals](https://developer.android.com/reference/java/io/File.html#equals(java.lang.Object))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn equals<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/Object;)Z"
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/io/File\0", "equals\0", "(Ljava/lang/Object;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [exists](https://developer.android.com/reference/java/io/File.html#exists())
pub fn exists<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "exists", .descriptor == "()Z"
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/io/File\0", "exists\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAbsolutePath](https://developer.android.com/reference/java/io/File.html#getAbsolutePath())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getAbsolutePath<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getAbsolutePath", .descriptor == "()Ljava/lang/String;"
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/io/File\0", "getAbsolutePath\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAbsoluteFile](https://developer.android.com/reference/java/io/File.html#getAbsoluteFile())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn getAbsoluteFile<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getAbsoluteFile", .descriptor == "()Ljava/io/File;"
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/io/File\0", "getAbsoluteFile\0", "()Ljava/io/File;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCanonicalPath](https://developer.android.com/reference/java/io/File.html#getCanonicalPath())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getCanonicalPath<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getCanonicalPath", .descriptor == "()Ljava/lang/String;"
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/io/File\0", "getCanonicalPath\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCanonicalFile](https://developer.android.com/reference/java/io/File.html#getCanonicalFile())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn getCanonicalFile<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getCanonicalFile", .descriptor == "()Ljava/io/File;"
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/io/File\0", "getCanonicalFile\0", "()Ljava/io/File;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getName](https://developer.android.com/reference/java/io/File.html#getName())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getName<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getName", .descriptor == "()Ljava/lang/String;"
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/io/File\0", "getName\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getParent](https://developer.android.com/reference/java/io/File.html#getParent())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getParent<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getParent", .descriptor == "()Ljava/lang/String;"
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/io/File\0", "getParent\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getParentFile](https://developer.android.com/reference/java/io/File.html#getParentFile())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn getParentFile<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getParentFile", .descriptor == "()Ljava/io/File;"
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/io/File\0", "getParentFile\0", "()Ljava/io/File;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getPath](https://developer.android.com/reference/java/io/File.html#getPath())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getPath<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getPath", .descriptor == "()Ljava/lang/String;"
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/io/File\0", "getPath\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hashCode](https://developer.android.com/reference/java/io/File.html#hashCode())
pub fn hashCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "hashCode", .descriptor == "()I"
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/io/File\0", "hashCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isAbsolute](https://developer.android.com/reference/java/io/File.html#isAbsolute())
pub fn isAbsolute<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "isAbsolute", .descriptor == "()Z"
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/io/File\0", "isAbsolute\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isDirectory](https://developer.android.com/reference/java/io/File.html#isDirectory())
pub fn isDirectory<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "isDirectory", .descriptor == "()Z"
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/io/File\0", "isDirectory\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isFile](https://developer.android.com/reference/java/io/File.html#isFile())
pub fn isFile<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "isFile", .descriptor == "()Z"
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/io/File\0", "isFile\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isHidden](https://developer.android.com/reference/java/io/File.html#isHidden())
pub fn isHidden<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "isHidden", .descriptor == "()Z"
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/io/File\0", "isHidden\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [lastModified](https://developer.android.com/reference/java/io/File.html#lastModified())
pub fn lastModified<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "lastModified", .descriptor == "()J"
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/io/File\0", "lastModified\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setLastModified](https://developer.android.com/reference/java/io/File.html#setLastModified(long))
pub fn setLastModified<'env>(&'env self, arg0: i64) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "setLastModified", .descriptor == "(J)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "setLastModified\0", "(J)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setReadOnly](https://developer.android.com/reference/java/io/File.html#setReadOnly())
pub fn setReadOnly<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "setReadOnly", .descriptor == "()Z"
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/io/File\0", "setReadOnly\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setExecutable](https://developer.android.com/reference/java/io/File.html#setExecutable(boolean,%20boolean))
pub fn setExecutable_boolean_boolean<'env>(&'env self, arg0: bool, arg1: bool) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "setExecutable", .descriptor == "(ZZ)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "setExecutable\0", "(ZZ)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setExecutable](https://developer.android.com/reference/java/io/File.html#setExecutable(boolean))
pub fn setExecutable_boolean<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "setExecutable", .descriptor == "(Z)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "setExecutable\0", "(Z)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setReadable](https://developer.android.com/reference/java/io/File.html#setReadable(boolean,%20boolean))
pub fn setReadable_boolean_boolean<'env>(&'env self, arg0: bool, arg1: bool) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "setReadable", .descriptor == "(ZZ)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "setReadable\0", "(ZZ)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setReadable](https://developer.android.com/reference/java/io/File.html#setReadable(boolean))
pub fn setReadable_boolean<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "setReadable", .descriptor == "(Z)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "setReadable\0", "(Z)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setWritable](https://developer.android.com/reference/java/io/File.html#setWritable(boolean,%20boolean))
pub fn setWritable_boolean_boolean<'env>(&'env self, arg0: bool, arg1: bool) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "setWritable", .descriptor == "(ZZ)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "setWritable\0", "(ZZ)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setWritable](https://developer.android.com/reference/java/io/File.html#setWritable(boolean))
pub fn setWritable_boolean<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "setWritable", .descriptor == "(Z)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/io/File\0", "setWritable\0", "(Z)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [length](https://developer.android.com/reference/java/io/File.html#length())
pub fn length<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "length", .descriptor == "()J"
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/io/File\0", "length\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [list](https://developer.android.com/reference/java/io/File.html#list())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn list<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "list", .descriptor == "()[Ljava/lang/String;"
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/io/File\0", "list\0", "()[Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [list](https://developer.android.com/reference/java/io/File.html#list(java.io.FilenameFilter))
///
/// Required features: "java-io-FilenameFilter", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-io-FilenameFilter", feature = "java-lang-String")))]
pub fn list_FilenameFilter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::FilenameFilter>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "list", .descriptor == "(Ljava/io/FilenameFilter;)[Ljava/lang/String;"
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/io/File\0", "list\0", "(Ljava/io/FilenameFilter;)[Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [listFiles](https://developer.android.com/reference/java/io/File.html#listFiles())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn listFiles<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::io::File, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "listFiles", .descriptor == "()[Ljava/io/File;"
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/io/File\0", "listFiles\0", "()[Ljava/io/File;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [listFiles](https://developer.android.com/reference/java/io/File.html#listFiles(java.io.FilenameFilter))
///
/// Required features: "java-io-File", "java-io-FilenameFilter"
#[cfg(any(feature = "all", all(feature = "java-io-File", feature = "java-io-FilenameFilter")))]
pub fn listFiles_FilenameFilter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::FilenameFilter>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::io::File, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "listFiles", .descriptor == "(Ljava/io/FilenameFilter;)[Ljava/io/File;"
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/io/File\0", "listFiles\0", "(Ljava/io/FilenameFilter;)[Ljava/io/File;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [listFiles](https://developer.android.com/reference/java/io/File.html#listFiles(java.io.FileFilter))
///
/// Required features: "java-io-File", "java-io-FileFilter"
#[cfg(any(feature = "all", all(feature = "java-io-File", feature = "java-io-FileFilter")))]
pub fn listFiles_FileFilter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::FileFilter>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::io::File, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "listFiles", .descriptor == "(Ljava/io/FileFilter;)[Ljava/io/File;"
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/io/File\0", "listFiles\0", "(Ljava/io/FileFilter;)[Ljava/io/File;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [mkdir](https://developer.android.com/reference/java/io/File.html#mkdir())
pub fn mkdir<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "mkdir", .descriptor == "()Z"
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/io/File\0", "mkdir\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [mkdirs](https://developer.android.com/reference/java/io/File.html#mkdirs())
pub fn mkdirs<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "mkdirs", .descriptor == "()Z"
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/io/File\0", "mkdirs\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [createNewFile](https://developer.android.com/reference/java/io/File.html#createNewFile())
pub fn createNewFile<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "createNewFile", .descriptor == "()Z"
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/io/File\0", "createNewFile\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [createTempFile](https://developer.android.com/reference/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String))
///
/// Required features: "java-io-File", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-io-File", feature = "java-lang-String")))]
pub fn createTempFile_String_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: 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::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC | STATIC, .name == "createTempFile", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;"
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/io/File\0", "createTempFile\0", "(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [createTempFile](https://developer.android.com/reference/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File))
///
/// Required features: "java-io-File", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-io-File", feature = "java-lang-String")))]
pub fn createTempFile_String_String_File<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::File>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC | STATIC, .name == "createTempFile", .descriptor == "(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;"
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_static_method("java/io/File\0", "createTempFile\0", "(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [renameTo](https://developer.android.com/reference/java/io/File.html#renameTo(java.io.File))
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn renameTo<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::File>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "renameTo", .descriptor == "(Ljava/io/File;)Z"
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/io/File\0", "renameTo\0", "(Ljava/io/File;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [toString](https://developer.android.com/reference/java/io/File.html#toString())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;"
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/io/File\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [toURI](https://developer.android.com/reference/java/io/File.html#toURI())
///
/// Required features: "java-net-URI"
#[cfg(any(feature = "all", all(feature = "java-net-URI")))]
pub fn toURI<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::URI>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "toURI", .descriptor == "()Ljava/net/URI;"
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/io/File\0", "toURI\0", "()Ljava/net/URI;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [toURL](https://developer.android.com/reference/java/io/File.html#toURL())
///
/// Required features: "java-net-URL"
#[cfg(any(feature = "all", all(feature = "java-net-URL")))]
#[deprecated] pub fn toURL<'env>(&'env self) -> __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/io/File", java.flags == PUBLIC, .name == "toURL", .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/io/File\0", "toURL\0", "()Ljava/net/URL;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTotalSpace](https://developer.android.com/reference/java/io/File.html#getTotalSpace())
pub fn getTotalSpace<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getTotalSpace", .descriptor == "()J"
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/io/File\0", "getTotalSpace\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUsableSpace](https://developer.android.com/reference/java/io/File.html#getUsableSpace())
pub fn getUsableSpace<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getUsableSpace", .descriptor == "()J"
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/io/File\0", "getUsableSpace\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getFreeSpace](https://developer.android.com/reference/java/io/File.html#getFreeSpace())
pub fn getFreeSpace<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/io/File", java.flags == PUBLIC, .name == "getFreeSpace", .descriptor == "()J"
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/io/File\0", "getFreeSpace\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public static final [pathSeparator](https://developer.android.com/reference/java/io/File.html#pathSeparator)
///
/// Required feature: "java-lang-String"
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn pathSeparator<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/io/File\0", "pathSeparator\0", "Ljava/lang/String;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [pathSeparatorChar](https://developer.android.com/reference/java/io/File.html#pathSeparatorChar)
pub fn pathSeparatorChar<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::jchar {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/io/File\0", "pathSeparatorChar\0", "C\0");
env.get_static_char_field(__jni_class, __jni_field)
}
}
/// **get** public static final [separator](https://developer.android.com/reference/java/io/File.html#separator)
///
/// Required feature: "java-lang-String"
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn separator<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/io/File\0", "separator\0", "Ljava/lang/String;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [separatorChar](https://developer.android.com/reference/java/io/File.html#separatorChar)
pub fn separatorChar<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::jchar {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/io/File\0", "separatorChar\0", "C\0");
env.get_static_char_field(__jni_class, __jni_field)
}
}
}
}