java.lang.Object
java.io.OutputStream
java.io.PipedOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- See Also:
- Top Examples, Source Code,
PipedInputStream
public void close()
throws IOException
- See Also:
- OutputStream, Closeable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[967]Pipe broken exception
By Anonymous on 2004/10/01 14:44:29 Rate
PipedInputStream and PipedOutputStream
These two classes have an odd side effect: if you create the streams in the main ( ) thread, and you run off your main ( ) method, the pipe times out after about a second, even if you still have some ( non-daemon ) threads running with references to the streams. You then get a java.io.IOException: Pipe broken if you try to read from the PipedInputStream.
public void connect(PipedInputStream snk)
throws IOException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void flush()
throws IOException
- See Also:
- OutputStream, Flushable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PipedOutputStream()
- See Also:
connect(java.io.PipedInputStream)
, PipedInputStream.connect(java.io.PipedOutputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PipedOutputStream(PipedInputStream snk)
throws IOException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void write(byte[] b,
int off,
int len)
throws IOException
- See Also:
- OutputStream
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void write(int b)
throws IOException
- See Also:
- OutputStream
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples