java.io.PipedInputStream (JDK 1.0)
This class is an InputStream that implements one-half of a pipe, and is useful for communication between threads. A PipedInputStream must be connected to a PipedOutputStream object, which may be specified when the PipedInputStream is created or with the connect() method. Data read from a PipedInputStream object are received from the PipedOutputStream to which it is connected.
See InputStream for information on the low-level methods for reading data from a PipedInputStream. A FilterInputStream may be used to provide a higher-level interface for reading data from a PipedInputStream.
public classPipedInputStreamextends InputStream { //Public ConstructorspublicPipedInputStream(PipedOutputStreamsrc) throws IOException; publicPipedInputStream(); //Constants1.1 protected static final intPIPE_SIZE; //Protected Instance Variables1.1 protected byte[]buffer; 1.1 protected intin; 1.1 protected intout; //Public Instance Methodspublic synchronized intavailable() throws IOException; //Overrides InputStreampublic voidclose() throws IOException; //Overrides InputStreampublic voidconnect(PipedOutputStreamsrc) throws IOException; public synchronized intread() throws IOException; //Defines InputStreampublic synchronized intread(byte[]b, intoff, intlen) throws IOException; //Overrides InputStream//Protected Instance Methods1.1 protected synchronized voidreceive(intb) throws IOException; }
Hierarchy:
Object->InputStream->PipedInputStream
Passed To:
PipedOutputStream(), PipedOutputStream.connect()