Java.IO.BufferedReader.Read Method
Reads up to length characters from this reader and stores them at offset in the character array buffer.

Syntax

[Android.Runtime.Register("read", "([CII)I", "GetRead_arrayCIIHandler")]
public override int Read (char[] buffer, int offset, int length)

Parameters

buffer
the character array to store the characters read.
offset
the initial position in buffer to store the chars read from this reader.
length
the maximum number of characters to read, must be non-negative.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif offset buffer.length.
Java.IO.IOExceptionif this reader is closed or some other I/O error occurs.

Remarks

Reads up to length characters from this reader and stores them at offset in the character array buffer. Returns the number of characters actually read or -1 if the end of the source reader has been reached. If all the buffered characters have been used, a mark has not been set and the requested number of characters is larger than this readers buffer size, BufferedReader bypasses the buffer and simply places the results directly into buffer.

[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