Java.IO.InputStream.Read Method
Reads up to byteCount bytes from this stream 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[] b, int offset, int length)

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.
offset
the initial position in buffer to store the bytes read from this stream.
length
the maximum number of bytes to store in b.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif byteOffset buffer.length.
Java.IO.IOExceptionif the stream is closed or another IOException occurs.

Remarks

Reads up to byteCount bytes from this stream and stores them in the byte array buffer starting at byteOffset. Returns the number of bytes actually read or -1 if the end of the stream has been reached.

[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