A piped input stream is the receiving end of a communications
pipe. Two threads can communicate by having one thread send data
through a piped output stream and having the other thread read the
data through a piped input stream.
Creates a piped input stream that is not yet connected to a piped
output stream. It must be connected to a piped output stream,
either by the receiver or the sender, before being used.
Reads the next byte of data from this piped input stream. The
value byte is returned as an int in the range
0 to 255. If no byte is available
because this end of the stream has been reached, the value
-1 is returned. This method blocks until input data
is available, the end of the stream is detected, or an exception
is thrown.
Returns:
the next byte of data, or -1 if the end of the
stream is reached.
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.