KickJava   Java API By Example, From Geeks To Geeks.

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

java.io
Class PipedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.PipedInputStream
All Implemented Interfaces:
Closeable
See Also:
Top Examples, Source Code, PipedOutputStream

public int available()
              throws IOException
See Also:
InputStream
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[966]An odd side effect of PipedInputStream and PipedOutputStream
By Anonymous on 2004/10/01 14:44:23  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.


protected byte[] buffer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void close()
           throws IOException
See Also:
InputStream, Closeable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void connect(PipedOutputStream src)
             throws IOException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int in
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int out
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public PipedInputStream()
See Also:
PipedOutputStream.connect(java.io.PipedInputStream), connect(java.io.PipedOutputStream)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public PipedInputStream(PipedOutputStream src)
                 throws IOException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected static final int PIPE_SIZE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int read()
         throws IOException
See Also:
InputStream
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int read(byte[] b,
                int off,
                int len)
         throws IOException
See Also:
InputStream.read()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void receive(int b)
                throws IOException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags