- buffer
- the buffer to write.
- offset
- the index of the first character in buffer to write.
- count
- the number of characters from buffer to write to this writer.
Type Reason Java.Lang.IndexOutOfBoundsException if offset or count , or if offset + count is bigger than the length of buffer. Java.IO.InterruptedIOException if the pipe is full and the current thread is interrupted waiting for space to write data. This case is not currently handled correctly. Java.IO.IOException if this writer is closed or not connected, if the target reader is closed or if the thread reading from the target reader is no longer alive. This case is currently not handled correctly. Java.Lang.NullPointerException if buffer is null.
Writes count characters from the character array buffer starting at offset index to this writer. The written data can then be read from the connected Java.IO.PipedReader instance.
Separate threads should be used to write to a PipedWriter and to read from the connected PipedReader. If the same thread is used, a deadlock may occur.