Java.Nio.Channels.IGatheringByteChannel.Write Method
Writes bytes from all the given buffers to a channel.

Syntax

[Android.Runtime.Register("write", "([Ljava/nio/ByteBuffer;)J", "GetWrite_arrayLjava_nio_ByteBuffer_Handler:Java.Nio.Channels.IGatheringByteChannelInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public long Write (Java.Nio.ByteBuffer[] buffers)

Parameters

buffers
the buffers containing bytes to be written.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.Channels.AsynchronousCloseExceptionif the channel is closed by another thread during this write operation.
Java.Nio.Channels.ClosedByInterruptExceptionif another thread interrupts the calling thread while the operation is in progress. The interrupt state of the calling thread is set and the channel is closed.
Java.Nio.Channels.ClosedChannelExceptionif the channel is closed.
Java.Lang.IndexOutOfBoundsExceptionif offset or length , or if offset + length is greater than the size of buffers.
Java.IO.IOExceptionif another I/O error occurs; details are in the message.
Java.Nio.Channels.NonWritableChannelExceptionif the channel has not been opened in a mode that permits writing.

Remarks

Writes bytes from all the given buffers to a channel.

This method is equivalent to: 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