public class PipedOutputStream extends OutputStream
PipedOutputStream. This piped
stream does not have the flaws found in the java.io implementation. It
allows multiple threads to write to it without interfering with the stream's
state. Also, a thread reading from the stream can't get into a one-second
polling mode.PipedInputStream| Constructor and Description |
|---|
PipedOutputStream() |
PipedOutputStream(PipedInputStream pin) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isClosed() |
boolean |
isReady() |
String |
toString() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int b) |
flushpublic PipedOutputStream()
public PipedOutputStream(PipedInputStream pin) throws IOException
IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic boolean isReady()
throws IOException
IOExceptionpublic boolean isClosed()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamCopyright © 2006–2015 Cojen. All rights reserved.