java.io.PipedWriter (JDK 1.1)
PipedWriter is a character output stream that writes characters to the PipedReader character input stream to which it is connected. PipedWriter implements one half of a pipe, and is useful for communication between two threads of an application.
A PipedWriter cannot be used until it is connected to a PipedReader object, which may be passed to the PipedWriter() constructor, or to the connect() method.
PipedWriter inherits most of the methods of its superclass. See Writer for more information.
PipedWriter is the character stream analog of PipedOutputStream.
public classPipedWriterextends Writer { //Public ConstructorspublicPipedWriter(); publicPipedWriter(PipedReadersink) throws IOException; //Public Instance Methodspublic voidclose() throws IOException; //Defines Writerpublic voidconnect(PipedReadersink) throws IOException; public voidflush() throws IOException; //Defines Writerpublic voidwrite(char[]cbuf, intoff, intlen) throws IOException; //Defines Writer}
Hierarchy:
Object->Writer->PipedWriter
Passed To:
PipedReader(), PipedReader.connect()