PipedWriter

public class PipedWriter
extends Writer

java.lang.Object
   ↳ java.io.Writer
     ↳ java.io.PipedWriter


Piped character-output streams.

Summary

Inherited fields

Public constructors

PipedWriter()

Creates a piped writer that is not yet connected to a piped reader.

PipedWriter(PipedReader snk)

Creates a piped writer connected to the specified piped reader.

Public methods

void close()

Closes this piped output stream and releases any system resources associated with this stream.

void connect(PipedReader snk)

Connects this piped writer to a receiver.

void flush()

Flushes this output stream and forces any buffered output characters to be written out.

void write(int c)

Writes the specified char to the piped output stream.

void write(char[] cbuf, int off, int len)

Writes len characters from the specified character array starting at offset off to this piped output stream.

Inherited methods