- oneByte
- the byte to write.
Type Reason 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 stream is not connected, if the target stream is closed or if the thread reading from the target stream is no longer alive. This case is currently not handled correctly.
Writes a single byte to this stream. Only the least significant byte of the integer oneByte is written. The written byte can then be read from the connected input stream.
Separate threads should be used to write to a PipedOutputStream and to read from the connected Java.IO.PipedInputStream. If the same thread is used, a deadlock may occur.