[−]Struct jni_android_sys::java::nio::channels::FileChannel
public class FileChannel
Required feature: "java-nio-channels-FileChannel"
Methods
impl FileChannel
pub fn open_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, FileChannel>>, 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, FileChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileChannel", "java-nio-file-Path", "java-nio-file-attribute-FileAttribute", "java-util-Set"
pub fn open_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, FileChannel>>, 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, FileChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileChannel", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn read_ByteBuffer<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn read_ByteBuffer_array_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>,
arg1: i32,
arg2: i32
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>,
arg1: i32,
arg2: i32
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn read_ByteBuffer_array<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn write_ByteBuffer<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn write_ByteBuffer_array_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>,
arg1: i32,
arg2: i32
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>,
arg1: i32,
arg2: i32
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn write_ByteBuffer_array<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn position<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn position_long<'env>(
&'env self,
arg0: i64
) -> Result<Option<Local<'env, FileChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, FileChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileChannel"
pub fn size<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn truncate_long<'env>(
&'env self,
arg0: i64
) -> Result<Option<Local<'env, FileChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, FileChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileChannel"
pub fn force<'env>(&'env self, arg0: bool) -> Result<(), Local<'env, Throwable>>
[src]
pub fn transferTo<'env>(
&'env self,
arg0: i64,
arg1: i64,
arg2: impl Into<Option<&'env WritableByteChannel>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64,
arg2: impl Into<Option<&'env WritableByteChannel>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-nio-channels-WritableByteChannel"
pub fn transferFrom<'env>(
&'env self,
arg0: impl Into<Option<&'env ReadableByteChannel>>,
arg1: i64,
arg2: i64
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ReadableByteChannel>>,
arg1: i64,
arg2: i64
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-nio-channels-ReadableByteChannel"
pub fn read_ByteBuffer_long<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn write_ByteBuffer_long<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn map<'env>(
&'env self,
arg0: impl Into<Option<&'env FileChannel_MapMode>>,
arg1: i64,
arg2: i64
) -> Result<Option<Local<'env, MappedByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileChannel_MapMode>>,
arg1: i64,
arg2: i64
) -> Result<Option<Local<'env, MappedByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-MappedByteBuffer", "java-nio-channels-FileChannel_MapMode"
pub fn lock_long_long_boolean<'env>(
&'env self,
arg0: i64,
arg1: i64,
arg2: bool
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64,
arg2: bool
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileLock"
pub fn lock<'env>(
&'env self
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileLock"
pub fn tryLock_long_long_boolean<'env>(
&'env self,
arg0: i64,
arg1: i64,
arg2: bool
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64,
arg2: bool
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileLock"
pub fn tryLock<'env>(
&'env self
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileLock"
Methods from Deref<Target = AbstractInterruptibleChannel>
pub fn close<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn isOpen<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for FileChannel
impl AsRef<GatheringByteChannel> for FileChannel
fn as_ref(&self) -> &GatheringByteChannel
impl AsRef<ScatteringByteChannel> for FileChannel
fn as_ref(&self) -> &ScatteringByteChannel
impl AsRef<SeekableByteChannel> for FileChannel
fn as_ref(&self) -> &SeekableByteChannel
impl AsValidJObjectAndEnv for FileChannel
impl Deref for FileChannel
type Target = AbstractInterruptibleChannel
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl JniType for FileChannel
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for FileChannel
impl !Send for FileChannel
impl !Sync for FileChannel
impl Unpin for FileChannel
impl UnwindSafe for FileChannel
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>,