Java.Nio.Channels.FileChannel Members

The members of Java.Nio.Channels.FileChannel are listed below.

See Also: Inherited members from Java.Nio.Channels.Spi.AbstractInterruptibleChannel

Protected Constructors

Protected default constructor.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
Force(bool)
Requests that all updates to this channel are committed to the storage device.
ForceAsync(bool) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
Lock() : FileLock
Obtains an exclusive lock on this file.
abstract
Lock(long, long, bool) : FileLock
Obtains a lock on a specified region of the file.
abstract
Map(FileChannel.MapMode, long, long) : Java.Nio.MappedByteBuffer
Maps the file into memory.
abstract
Position() : long
Returns the current position as a positive integer number of bytes from the start of the file.
abstract
Position(long) : FileChannel
Sets the file position pointer to a new value.
abstract
Read(Java.Nio.ByteBuffer) : int
Reads bytes from this file channel into the given buffer.
Read(Java.Nio.ByteBuffer[]) : long
Reads bytes from this file channel and stores them in the specified array of buffers.
abstract
Read(Java.Nio.ByteBuffer, long) : int
Reads bytes from this file channel into the given buffer starting from the specified file position.
abstract
Read(Java.Nio.ByteBuffer[], int, int) : long
Reads bytes from this file channel into a subset of the given buffers.
ReadAsync(Java.Nio.ByteBuffer) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
ReadAsync(Java.Nio.ByteBuffer[]) : System.Threading.Tasks.Task<long>
Documentation for this section has not yet been entered.
ReadAsync(Java.Nio.ByteBuffer, long) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
ReadAsync(Java.Nio.ByteBuffer[], int, int) : System.Threading.Tasks.Task<long>
Documentation for this section has not yet been entered.
abstract
Size() : long
Returns the size of the file underlying this channel in bytes.
abstract
TransferFrom(IReadableByteChannel, long, long) : long
Reads up to count bytes from src and stores them in this channel's file starting at position.
TransferFromAsync(IReadableByteChannel, long, long) : System.Threading.Tasks.Task<long>
Documentation for this section has not yet been entered.
abstract
TransferTo(long, long, IWritableByteChannel) : long
Reads up to count bytes from this channel's file starting at position and writes them to target.
TransferToAsync(long, long, IWritableByteChannel) : System.Threading.Tasks.Task<long>
Documentation for this section has not yet been entered.
abstract
Truncate(long) : FileChannel
Truncates the file underlying this channel to a given size.
TruncateAsync(long) : System.Threading.Tasks.Task<FileChannel>
Documentation for this section has not yet been entered.
TryLock() : FileLock
Attempts to acquire an exclusive lock on this file without blocking.
abstract
TryLock(long, long, bool) : FileLock
Attempts to acquire an exclusive lock on this file without blocking.
abstract
Write(Java.Nio.ByteBuffer) : int
Writes bytes from the given byte buffer to this file channel.
Write(Java.Nio.ByteBuffer[]) : long
Writes bytes from all the given byte buffers to this file channel.
abstract
Write(Java.Nio.ByteBuffer, long) : int
Writes bytes from the given buffer to this file channel starting at the given file position.
abstract
Write(Java.Nio.ByteBuffer[], int, int) : long
Attempts to write a subset of the given bytes from the buffers to this file channel.
WriteAsync(Java.Nio.ByteBuffer) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
WriteAsync(Java.Nio.ByteBuffer[]) : System.Threading.Tasks.Task<long>
Documentation for this section has not yet been entered.
WriteAsync(Java.Nio.ByteBuffer, long) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
WriteAsync(Java.Nio.ByteBuffer[], int, int) : System.Threading.Tasks.Task<long>
Documentation for this section has not yet been entered.