[−]Struct jni_android_sys::java::io::File
public class File
Required feature: java-io-File
Methods
impl File
pub fn new_string<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, File>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, File>>
Required features: "java-lang-String"
pub fn new_string_string<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, File>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, File>>
Required features: "java-lang-String"
pub fn new_file_string<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, File>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, File>>
Required features: "java-io-File", "java-lang-String"
pub fn new_uri<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env URI>>
) -> Result<Local<'env, File>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env URI>>
) -> Result<Local<'env, File>>
Required features: "java-net-URI"
pub fn get_name<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn get_parent<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn get_parent_file<'env>(&'env self) -> Result<Option<Local<'env, File>>>
[src]
Required features: "java-io-File"
pub fn get_path<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn is_absolute<'env>(&'env self) -> Result<bool>
[src]
pub fn get_absolute_path<'env>(
&'env self
) -> Result<Option<Local<'env, String>>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn get_absolute_file<'env>(&'env self) -> Result<Option<Local<'env, File>>>
[src]
Required features: "java-io-File"
pub fn get_canonical_path<'env>(
&'env self
) -> Result<Option<Local<'env, String>>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn get_canonical_file<'env>(&'env self) -> Result<Option<Local<'env, File>>>
[src]
Required features: "java-io-File"
pub fn to_url<'env>(&'env self) -> Result<Option<Local<'env, URL>>>
[src]
Required features: "java-net-URL"
pub fn to_uri<'env>(&'env self) -> Result<Option<Local<'env, URI>>>
[src]
Required features: "java-net-URI"
pub fn can_read<'env>(&'env self) -> Result<bool>
[src]
pub fn can_write<'env>(&'env self) -> Result<bool>
[src]
pub fn exists<'env>(&'env self) -> Result<bool>
[src]
pub fn is_directory<'env>(&'env self) -> Result<bool>
[src]
pub fn is_file<'env>(&'env self) -> Result<bool>
[src]
[src]
pub fn last_modified<'env>(&'env self) -> Result<i64>
[src]
pub fn length<'env>(&'env self) -> Result<i64>
[src]
pub fn create_new_file<'env>(&'env self) -> Result<bool>
[src]
pub fn delete<'env>(&'env self) -> Result<bool>
[src]
pub fn delete_on_exit<'env>(&'env self) -> Result<()>
[src]
pub fn mkdir<'env>(&'env self) -> Result<bool>
[src]
pub fn mkdirs<'env>(&'env self) -> Result<bool>
[src]
pub fn rename_to<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<bool>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<bool>
Required features: "java-io-File"
pub fn set_last_modified<'env>(&'env self, arg0: i64) -> Result<bool>
[src]
pub fn set_read_only<'env>(&'env self) -> Result<bool>
[src]
pub fn set_writable_boolean_boolean<'env>(
&'env self,
arg0: bool,
arg1: bool
) -> Result<bool>
[src]
&'env self,
arg0: bool,
arg1: bool
) -> Result<bool>
pub fn set_writable_boolean<'env>(&'env self, arg0: bool) -> Result<bool>
[src]
pub fn set_readable_boolean_boolean<'env>(
&'env self,
arg0: bool,
arg1: bool
) -> Result<bool>
[src]
&'env self,
arg0: bool,
arg1: bool
) -> Result<bool>
pub fn set_readable_boolean<'env>(&'env self, arg0: bool) -> Result<bool>
[src]
pub fn set_executable_boolean_boolean<'env>(
&'env self,
arg0: bool,
arg1: bool
) -> Result<bool>
[src]
&'env self,
arg0: bool,
arg1: bool
) -> Result<bool>
pub fn set_executable_boolean<'env>(&'env self, arg0: bool) -> Result<bool>
[src]
pub fn can_execute<'env>(&'env self) -> Result<bool>
[src]
pub fn get_total_space<'env>(&'env self) -> Result<i64>
[src]
pub fn get_free_space<'env>(&'env self) -> Result<i64>
[src]
pub fn get_usable_space<'env>(&'env self) -> Result<i64>
[src]
pub fn create_temp_file_string_string_file<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, File>>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, File>>>
Required features: "java-io-File", "java-lang-String"
pub fn create_temp_file_string_string<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, File>>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, File>>>
Required features: "java-io-File", "java-lang-String"
pub fn compare_to_file<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<i32>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<i32>
Required features: "java-io-File"
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn hash_code<'env>(&'env self) -> Result<i32>
[src]
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn to_path<'env>(&'env self) -> Result<Option<Local<'env, Path>>>
[src]
Required features: "java-nio-file-Path"
pub fn path_separator_char<'env>(env: &'env Env) -> jchar
[src]
get public static final pathSeparatorChar
pub fn separator_char<'env>(env: &'env Env) -> jchar
[src]
get public static final separatorChar
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>
[src]
Required features: "java-lang-Class"
pub fn hash_code<'env>(&'env self) -> Result<i32>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<()>
[src]
pub fn notify_all<'env>(&'env self) -> Result<()>
[src]
pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>
[src]
pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>
[src]
pub fn wait<'env>(&'env self) -> Result<()>
[src]
Trait Implementations
impl AsRef<Serializable> for File
fn as_ref(&self) -> &Serializable
impl AsRef<Comparable> for File
fn as_ref(&self) -> &Comparable
impl Deref for File
impl AsValidJObjectAndEnv for File
impl AsJValue for File
Auto Trait Implementations
impl !Sync for File
impl !Send for File
impl Unpin for File
impl RefUnwindSafe for File
impl UnwindSafe for File
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,