[]Struct jni_android_sys::java::nio::channels::FileChannel

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

open

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]

open

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]

read

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]

read

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]

read

Required features: "java-nio-ByteBuffer"

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

write

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]

write

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]

write

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]

position

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]

truncate

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]

transferTo

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]

transferFrom

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]

read

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]

write

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]

map

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]

lock

Required features: "java-nio-channels-FileLock"

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

lock

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]

tryLock

Required features: "java-nio-channels-FileLock"

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

tryLock

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

impl AsRef<ScatteringByteChannel> for FileChannel

impl AsRef<SeekableByteChannel> for FileChannel

impl AsValidJObjectAndEnv for FileChannel

impl Deref for FileChannel

type Target = AbstractInterruptibleChannel

The resulting type after dereferencing.

impl JniType for FileChannel

Auto Trait Implementations

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.