Java.IO.RandomAccessFile.Read Method
Reads up to byteCount bytes from the current position in this file and stores them in the byte array buffer starting at byteOffset.

Syntax

[Android.Runtime.Register("read", "([BII)I", "GetRead_arrayBIIHandler")]
public virtual int Read (byte[] buffer, int offset, int count)

Parameters

buffer
Documentation for this section has not yet been entered.
byteOffset
Documentation for this section has not yet been entered.
byteCount
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif byteOffset buffer.length.
Java.IO.IOExceptionif this file is closed or another I/O error occurs.

Remarks

Reads up to byteCount bytes from the current position in this file and stores them in the byte array buffer starting at byteOffset. Blocks until at least one byte has been read, the end of the file is detected, or an exception is thrown. Returns the number of bytes actually read or -1 if the end of the stream has been reached. See also RandomAccessFile.ReadFully(Byte[]).

[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