| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private PipedReader |
| Access | Constructor and Description |
|---|---|
| public | PipedWriter(PipedReader
The piped reader to connect to. snk)Creates a piped writer connected to the specified piped reader. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes this piped output stream and releases any system resources associated with this stream. |
| public synchronized void | |
| public synchronized void | flush()
Implements abstract java. Implements java. Flushes this output stream and forces any buffered output characters to be written out. |
| public void | write(int
the c)char to be written.Overrides java. Writes the specified |
| public void | write(char[]
the data. cbuf, int the start offset in the data. off, int the number of characters to write. len)Implements abstract java. Writes |
| closed | back to summary |
|---|---|
| private boolean closed | |
| sink | back to summary |
|---|---|
| private PipedReader sink | |
| PipedWriter | back to summary |
|---|---|
| public PipedWriter(PipedReader snk) throws IOException Creates a piped writer connected to the specified piped
reader. Data characters written to this stream will then be
available as input from
| |
| PipedWriter | back to summary |
|---|---|
| public PipedWriter() Creates a piped writer that is not yet connected to a piped reader. It must be connected to a piped reader, either by the receiver or the sender, before being used. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Closes this piped output stream and releases any system resources associated with this stream. This stream may no longer be used for writing characters.
| |
| connect | back to summary |
|---|---|
| public synchronized void connect(PipedReader snk) throws IOException Connects this piped writer to a receiver. If this object
is already connected to some other piped reader, an
If src.connect(snk) snk.connect(src)
| |
| flush | back to summary |
|---|---|
| public synchronized void flush() throws IOException Implements abstract java. Implements java. Flushes this output stream and forces any buffered output characters to be written out. This will notify any readers that characters are waiting in the pipe.
| |
| write | back to summary |
|---|---|
| public void write(int c) throws IOException Overrides java. Writes the specified
Implements the
| |
| write | back to summary |
|---|---|
| public void write(char[] cbuf, int off, int len) throws IOException Implements abstract java. Writes
| |