Documentation for this section has not yet been entered.
Type Reason Java.IO.IOException if this stream is closed or not connected to an output stream, or if the thread writing to the connected output stream is no longer alive.
Reads a single byte from this stream and returns it as an integer in the range from 0 to 255. Returns -1 if the end of this stream has been reached. If there is no data in the pipe, this method blocks until data is available, the end of the stream is detected or an exception is thrown.
Separate threads should be used to read from a PipedInputStream and to write to the connected Java.IO.PipedOutputStream. If the same thread is used, a deadlock may occur.