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

Syntax

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

Parameters

buffer
the character array in which to store the characters read.
offset
the initial position in bytes to store the characters read from this reader.
count
the maximum number of characters to store in buffer.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif offset buffer.length.
Java.IO.InterruptedIOExceptionif the thread reading from this reader is interrupted.
Java.IO.IOExceptionif this reader is closed or not connected to a writer, or if the thread writing to the connected writer is no longer alive.

Remarks

Reads up to count characters from this reader and stores them in the character array buffer starting at offset. If there is no data in the pipe, this method blocks until at least one byte has been read, the end of the reader is detected or an exception is thrown.

Separate threads should be used to read from a PipedReader and to write to the connected Java.IO.PipedWriter. If the same thread is used, a deadlock may occur.

Returns the number of characters read or -1 if the end of the reader 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