Java.Nio.Channels.FileChannel.Write Method
Writes bytes from all the given byte buffers to this file channel.

Syntax

[Android.Runtime.Register("write", "([Ljava/nio/ByteBuffer;)J", "")]
public long Write (Java.Nio.ByteBuffer[] buffers)

Parameters

buffers
the buffers containing bytes to write.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.Channels.AsynchronousCloseExceptionif this channel is closed by another thread during this write operation.
Java.Nio.Channels.ClosedByInterruptExceptionif another thread interrupts the calling thread while this operation is in progress. The interrupt state of the calling thread is set and the channel is closed.
Java.Nio.Channels.ClosedChannelExceptionif this channel is closed.
Java.IO.IOExceptionif another I/O error occurs; details are in the message.
Java.Nio.Channels.NonWritableChannelExceptionif this channel was not opened for writing.

Remarks

Writes bytes from all the given byte buffers to this file channel.

The bytes are written starting at the current file position, and after the bytes are written (up to the remaining number of bytes in all the buffers), the file position is increased by the number of bytes actually written.

Calling this method is equivalent to calling write(buffers, 0, buffers.length);

[Android Documentation]

Requirements

Namespace: Java.Nio.Channels
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1