Java.Nio.Channels.IScatteringByteChannel.Read Method
Reads bytes from this channel into the specified array of buffers.

Syntax

[Android.Runtime.Register("read", "([Ljava/nio/ByteBuffer;)J", "GetRead_arrayLjava_nio_ByteBuffer_Handler:Java.Nio.Channels.IScatteringByteChannelInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public long Read (Java.Nio.ByteBuffer[] buffers)

Parameters

buffers
the array of byte buffers to store the bytes being read.

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 read 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.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 reading.

Remarks

Reads bytes from this channel into the specified array of buffers.

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