[−]Struct jni_android_sys::java::nio::file::Files
public final class Files
Required feature: "java-nio-file-Files"
Methods
impl Files
pub fn newInputStream<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
Required features: "java-io-InputStream", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn newOutputStream<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, OutputStream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, OutputStream>>, Local<'env, Throwable>>
Required features: "java-io-OutputStream", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn newByteChannel_Path_Set_FileAttribute_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Set>>,
arg2: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, SeekableByteChannel>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Set>>,
arg2: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, SeekableByteChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-SeekableByteChannel", "java-nio-file-Path", "java-nio-file-attribute-FileAttribute", "java-util-Set"
pub fn newByteChannel_Path_OpenOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, SeekableByteChannel>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, SeekableByteChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-SeekableByteChannel", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn newDirectoryStream_Path<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, DirectoryStream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, DirectoryStream>>, Local<'env, Throwable>>
Required features: "java-nio-file-DirectoryStream", "java-nio-file-Path"
pub fn newDirectoryStream_Path_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, DirectoryStream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, DirectoryStream>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-nio-file-DirectoryStream", "java-nio-file-Path"
pub fn newDirectoryStream_Path_Filter<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env DirectoryStream_Filter>>
) -> Result<Option<Local<'env, DirectoryStream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env DirectoryStream_Filter>>
) -> Result<Option<Local<'env, DirectoryStream>>, Local<'env, Throwable>>
Required features: "java-nio-file-DirectoryStream", "java-nio-file-DirectoryStream_Filter", "java-nio-file-Path"
pub fn createFile<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-nio-file-attribute-FileAttribute"
pub fn createDirectory<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-nio-file-attribute-FileAttribute"
pub fn createDirectories<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-nio-file-attribute-FileAttribute"
pub fn createTempFile_Path_String_String_FileAttribute_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env String>>,
arg3: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env String>>,
arg3: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-nio-file-Path", "java-nio-file-attribute-FileAttribute"
pub fn createTempFile_String_String_FileAttribute_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-nio-file-Path", "java-nio-file-attribute-FileAttribute"
pub fn createTempDirectory_Path_String_FileAttribute_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-nio-file-Path", "java-nio-file-attribute-FileAttribute"
pub fn createTempDirectory_String_FileAttribute_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-nio-file-Path", "java-nio-file-attribute-FileAttribute"
pub fn createSymbolicLink<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-nio-file-attribute-FileAttribute"
pub fn createLink<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn delete<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn deleteIfExists<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn copy_Path_Path_CopyOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env ObjectArray<CopyOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env ObjectArray<CopyOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-CopyOption", "java-nio-file-Path"
pub fn move<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env ObjectArray<CopyOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env ObjectArray<CopyOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-CopyOption", "java-nio-file-Path"
pub fn readSymbolicLink<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn getFileStore<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, FileStore>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, FileStore>>, Local<'env, Throwable>>
Required features: "java-nio-file-FileStore", "java-nio-file-Path"
pub fn isSameFile<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn isHidden<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn probeContentType<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-nio-file-Path"
pub fn getFileAttributeView<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Class>>,
arg2: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, FileAttributeView>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Class>>,
arg2: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, FileAttributeView>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-nio-file-LinkOption", "java-nio-file-Path", "java-nio-file-attribute-FileAttributeView"
pub fn readAttributes_Path_Class_LinkOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Class>>,
arg2: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, BasicFileAttributes>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Class>>,
arg2: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, BasicFileAttributes>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-nio-file-LinkOption", "java-nio-file-Path", "java-nio-file-attribute-BasicFileAttributes"
pub fn setAttribute<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Object>>,
arg3: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Object>>,
arg3: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "java-nio-file-LinkOption", "java-nio-file-Path"
pub fn getAttribute<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "java-nio-file-LinkOption", "java-nio-file-Path"
pub fn readAttributes_Path_String_LinkOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-nio-file-LinkOption", "java-nio-file-Path", "java-util-Map"
pub fn getPosixFilePermissions<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
Required features: "java-nio-file-LinkOption", "java-nio-file-Path", "java-util-Set"
pub fn setPosixFilePermissions<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Set>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Set>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-util-Set"
pub fn getOwner<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, UserPrincipal>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, UserPrincipal>>, Local<'env, Throwable>>
Required features: "java-nio-file-LinkOption", "java-nio-file-Path", "java-nio-file-attribute-UserPrincipal"
pub fn setOwner<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env UserPrincipal>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env UserPrincipal>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-nio-file-attribute-UserPrincipal"
pub fn isSymbolicLink<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn isDirectory<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-LinkOption", "java-nio-file-Path"
pub fn isRegularFile<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-LinkOption", "java-nio-file-Path"
pub fn getLastModifiedTime<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, FileTime>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<Option<Local<'env, FileTime>>, Local<'env, Throwable>>
Required features: "java-nio-file-LinkOption", "java-nio-file-Path", "java-nio-file-attribute-FileTime"
pub fn setLastModifiedTime<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env FileTime>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env FileTime>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-nio-file-attribute-FileTime"
pub fn size<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<i64, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn exists<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-LinkOption", "java-nio-file-Path"
pub fn notExists<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<LinkOption, Throwable>>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-LinkOption", "java-nio-file-Path"
pub fn isReadable<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn isWritable<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn isExecutable<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn walkFileTree_Path_Set_int_FileVisitor<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Set>>,
arg2: i32,
arg3: impl Into<Option<&'env FileVisitor>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Set>>,
arg2: i32,
arg3: impl Into<Option<&'env FileVisitor>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-FileVisitor", "java-nio-file-Path", "java-util-Set"
pub fn walkFileTree_Path_FileVisitor<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env FileVisitor>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env FileVisitor>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-FileVisitor", "java-nio-file-Path"
pub fn newBufferedReader_Path_Charset<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Charset>>
) -> Result<Option<Local<'env, BufferedReader>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Charset>>
) -> Result<Option<Local<'env, BufferedReader>>, Local<'env, Throwable>>
Required features: "java-io-BufferedReader", "java-nio-charset-Charset", "java-nio-file-Path"
pub fn newBufferedReader_Path<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, BufferedReader>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, BufferedReader>>, Local<'env, Throwable>>
Required features: "java-io-BufferedReader", "java-nio-file-Path"
pub fn newBufferedWriter_Path_Charset_OpenOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Charset>>,
arg2: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, BufferedWriter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Charset>>,
arg2: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, BufferedWriter>>, Local<'env, Throwable>>
Required features: "java-io-BufferedWriter", "java-nio-charset-Charset", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn newBufferedWriter_Path_OpenOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, BufferedWriter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, BufferedWriter>>, Local<'env, Throwable>>
Required features: "java-io-BufferedWriter", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn copy_InputStream_Path_CopyOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env ObjectArray<CopyOption, Throwable>>>
) -> Result<i64, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env ObjectArray<CopyOption, Throwable>>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-io-InputStream", "java-nio-file-CopyOption", "java-nio-file-Path"
pub fn copy_Path_OutputStream<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env OutputStream>>
) -> Result<i64, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env OutputStream>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-io-OutputStream", "java-nio-file-Path"
pub fn readAllBytes<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path"
pub fn readAllLines_Path_Charset<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Charset>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Charset>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-nio-charset-Charset", "java-nio-file-Path", "java-util-List"
pub fn readAllLines_Path<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-util-List"
pub fn write_Path_byte_array_OpenOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ByteArray>>,
arg2: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ByteArray>>,
arg2: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn write_Path_Iterable_Charset_OpenOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Iterable>>,
arg2: impl Into<Option<&'env Charset>>,
arg3: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Iterable>>,
arg2: impl Into<Option<&'env Charset>>,
arg3: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-lang-Iterable", "java-nio-charset-Charset", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn write_Path_Iterable_OpenOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Iterable>>,
arg2: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Iterable>>,
arg2: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, Path>>, Local<'env, Throwable>>
Required features: "java-lang-Iterable", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn list<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-util-stream-Stream"
pub fn walk_Path_int_FileVisitOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: i32,
arg2: impl Into<Option<&'env ObjectArray<FileVisitOption, Throwable>>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: i32,
arg2: impl Into<Option<&'env ObjectArray<FileVisitOption, Throwable>>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
Required features: "java-nio-file-FileVisitOption", "java-nio-file-Path", "java-util-stream-Stream"
pub fn walk_Path_FileVisitOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<FileVisitOption, Throwable>>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<FileVisitOption, Throwable>>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
Required features: "java-nio-file-FileVisitOption", "java-nio-file-Path", "java-util-stream-Stream"
pub fn find<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: i32,
arg2: impl Into<Option<&'env BiPredicate>>,
arg3: impl Into<Option<&'env ObjectArray<FileVisitOption, Throwable>>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: i32,
arg2: impl Into<Option<&'env BiPredicate>>,
arg3: impl Into<Option<&'env ObjectArray<FileVisitOption, Throwable>>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
Required features: "java-nio-file-FileVisitOption", "java-nio-file-Path", "java-util-function-BiPredicate", "java-util-stream-Stream"
pub fn lines_Path_Charset<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Charset>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Charset>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
Required features: "java-nio-charset-Charset", "java-nio-file-Path", "java-util-stream-Stream"
pub fn lines_Path<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
Required features: "java-nio-file-Path", "java-util-stream-Stream"
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for Files
impl AsValidJObjectAndEnv for Files
impl Deref for Files
impl JniType for Files
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for Files
impl !Send for Files
impl !Sync for Files
impl Unpin for Files
impl UnwindSafe for Files
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,