Package java.io
Class PipedOutputStream
Description:
The close method closes this piped output stream and releases any system resources associated with this stream. This stream may no longer be used for writing bytes.
Example
PipedOutputStream pos = new PipedInputStream();
PipedInputStream pis = new PipedInputStream(pos);
pos.close();
pis.close();
The close method closes the piped input and output stream.