java.io.PipedOutputStream (JDK 1.0)
This class is an OutputStream that implements one half of a pipe, and is useful for communication between threads. A PipedOutputStream must be connected to a PipedInputStream, which may be specified when the PipedOutputStream is created or with the connect() method. Data written to the PipedOutputStream are available for reading on the PipedInputStream.
See OutputStream for information on the low-level methods for writing data to a PipedOutputStream. A FilterOutputStream may be used to provide a higher-level interface for writing data to a PipedOutputStream.
public classPipedOutputStreamextends OutputStream { //Public ConstructorspublicPipedOutputStream(PipedInputStreamsnk) throws IOException; publicPipedOutputStream(); //Public Instance Methodspublic voidclose() throws IOException; //Overrides OutputStreampublic voidconnect(PipedInputStreamsnk) throws IOException; public synchronized voidflush() throws IOException; //Overrides OutputStreampublic voidwrite(intb) throws IOException; //Defines OutputStreampublic voidwrite(byte[]b, intoff, intlen) throws IOException; //Overrides OutputStream}
Hierarchy:
Object->OutputStream->PipedOutputStream
Passed To:
PipedInputStream(), PipedInputStream.connect()