[]Struct jni_android_sys::java::io::File

#[repr(transparent)]
pub struct 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]

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]

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]

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]

Required features: "java-net-URI"

pub fn get_name<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

getName

Required features: "java-lang-String"

pub fn get_parent<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

getParent

Required features: "java-lang-String"

pub fn get_parent_file<'env>(&'env self) -> Result<Option<Local<'env, File>>>[src]

getParentFile

Required features: "java-io-File"

pub fn get_path<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

getPath

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]

getAbsolutePath

Required features: "java-lang-String"

pub fn get_absolute_file<'env>(&'env self) -> Result<Option<Local<'env, File>>>[src]

getAbsoluteFile

Required features: "java-io-File"

pub fn get_canonical_path<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>>
[src]

getCanonicalPath

Required features: "java-lang-String"

pub fn get_canonical_file<'env>(&'env self) -> Result<Option<Local<'env, File>>>[src]

getCanonicalFile

Required features: "java-io-File"

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

Deprecated

toURL

Required features: "java-net-URL"

pub fn to_uri<'env>(&'env self) -> Result<Option<Local<'env, URI>>>[src]

toURI

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]

pub fn is_hidden<'env>(&'env self) -> Result<bool>[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]

renameTo

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]

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]

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]

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]

createTempFile

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]

createTempFile

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]

compareTo

Required features: "java-io-File"

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

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]

toString

Required features: "java-lang-String"

pub fn to_path<'env>(&'env self) -> Result<Option<Local<'env, Path>>>[src]

toPath

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

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

impl AsRef<Comparable> for File

impl Deref for File

type Target = Object

The resulting type after dereferencing.

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]

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.

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

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

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