[]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>, Local<'env, Throwable>>
[src]

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>, Local<'env, Throwable>>
[src]

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>, Local<'env, Throwable>>
[src]

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>, Local<'env, Throwable>>
[src]

File

Required features: "java-net-URI"

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

getName

Required features: "java-lang-String"

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

getParent

Required features: "java-lang-String"

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

getParentFile

Required features: "java-io-File"

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

getPath

Required features: "java-lang-String"

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

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

getAbsolutePath

Required features: "java-lang-String"

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

getAbsoluteFile

Required features: "java-io-File"

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

getCanonicalPath

Required features: "java-lang-String"

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

getCanonicalFile

Required features: "java-io-File"

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

Deprecated

toURL

Required features: "java-net-URL"

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

toURI

Required features: "java-net-URI"

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

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

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

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

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

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

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

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

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

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

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

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

list

Required features: "java-lang-String"

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

list

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

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

listFiles

Required features: "java-io-File"

pub fn listFiles_FilenameFilter<'env>(
    &'env self,
    arg0: impl Into<Option<&'env FilenameFilter>>
) -> Result<Option<Local<'env, ObjectArray<File, Throwable>>>, Local<'env, Throwable>>
[src]

listFiles

Required features: "java-io-File", "java-io-FilenameFilter"

pub fn listFiles_FileFilter<'env>(
    &'env self,
    arg0: impl Into<Option<&'env FileFilter>>
) -> Result<Option<Local<'env, ObjectArray<File, Throwable>>>, Local<'env, Throwable>>
[src]

listFiles

Required features: "java-io-File", "java-io-FileFilter"

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

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

pub fn renameTo<'env>(
    &'env self,
    arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
[src]

renameTo

Required features: "java-io-File"

pub fn setLastModified<'env>(
    &'env self,
    arg0: i64
) -> Result<bool, Local<'env, Throwable>>
[src]

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

pub fn setWritable_boolean_boolean<'env>(
    &'env self,
    arg0: bool,
    arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setWritable_boolean<'env>(
    &'env self,
    arg0: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setReadable_boolean_boolean<'env>(
    &'env self,
    arg0: bool,
    arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setReadable_boolean<'env>(
    &'env self,
    arg0: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setExecutable_boolean_boolean<'env>(
    &'env self,
    arg0: bool,
    arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setExecutable_boolean<'env>(
    &'env self,
    arg0: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

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

pub fn listRoots<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, ObjectArray<File, Throwable>>>, Local<'env, Throwable>>
[src]

listRoots

Required features: "java-io-File"

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

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

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

pub fn createTempFile_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>>, Local<'env, Throwable>>
[src]

createTempFile

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

pub fn createTempFile_String_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, File>>, Local<'env, Throwable>>
[src]

createTempFile

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

pub fn compareTo_File<'env>(
    &'env self,
    arg0: impl Into<Option<&'env File>>
) -> Result<i32, Local<'env, Throwable>>
[src]

compareTo

Required features: "java-io-File"

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

equals

Required features: "java-lang-Object"

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

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

toString

Required features: "java-lang-String"

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

toPath

Required features: "java-nio-file-Path"

pub fn pathSeparator<'env>(env: &'env Env) -> Option<Local<'env, String>>[src]

get public static final pathSeparator

Required feature: "java-lang-String"

pub fn pathSeparatorChar<'env>(env: &'env Env) -> jchar[src]

get public static final pathSeparatorChar

pub fn separator<'env>(env: &'env Env) -> Option<Local<'env, String>>[src]

get public static final separator

Required feature: "java-lang-String"

pub fn separatorChar<'env>(env: &'env Env) -> jchar[src]

get public static final separatorChar

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

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

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

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

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

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

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

Trait Implementations

impl AsJValue for File

impl AsRef<Comparable> for File

impl AsRef<Serializable> for File

impl AsValidJObjectAndEnv for File

impl Deref for File

type Target = Object

The resulting type after dereferencing.

impl JniType for File

Auto Trait Implementations

impl RefUnwindSafe for File

impl !Send for File

impl !Sync for File

impl Unpin for File

impl UnwindSafe for File

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.