Java.IO.IDataInput.ReadFully Method
Reads byteCount bytes from this stream and stores them in the byte array dst starting at offset.

Syntax

[Android.Runtime.Register("readFully", "([BII)V", "GetReadFully_arrayBIIHandler:Java.IO.IDataInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ReadFully (byte[] buffer, int offset, int count)

Parameters

dst
the byte array into which the data is read.
offset
the offset in dst at which to store the bytes.
byteCount
the number of bytes to read.

Exceptions

TypeReason
Java.IO.EOFExceptionif the end of the source stream is reached before enough bytes have been read.
Java.Lang.IndexOutOfBoundsExceptionif offset or byteCount , or offset + byteCount > dst.length.
Java.IO.IOExceptionif a problem occurs while reading from this stream.
Java.Lang.NullPointerExceptionif dst is null.

Remarks

Reads byteCount bytes from this stream and stores them in the byte array dst starting at offset. If byteCount is zero, then this method returns without reading any bytes. Otherwise, this method blocks until byteCount bytes have been read. If insufficient bytes are available, EOFException is thrown. If an I/O error occurs, IOException is thrown. When an exception is thrown, some bytes may have been consumed from the stream and written into the array.

[Android Documentation]

Requirements

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