- 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.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IndexOutOfBoundsException if offset buffer.length. Java.IO.InterruptedIOException if the thread reading from this reader is interrupted. Java.IO.IOException if this reader is closed or not connected to a writer, or if the thread writing to the connected writer is no longer alive.
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.