KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > io > PipedOutputStream

java.io
Class PipedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by 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  

Popular Tags