g-Eclipse
Release 1.0.0

eu.geclipse.core.io
Class PipedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by eu.geclipse.core.io.PipedInputStream
All Implemented Interfaces:
java.io.Closeable

public class PipedInputStream
extends java.io.InputStream

Repacement for PipedInputStream. (because of Java bug nr. 4404700)


Constructor Summary
PipedInputStream()
           
PipedInputStream(PipedOutputStream out)
           
 
Method Summary
 int available()
           
 void close()
           
 void connect(PipedOutputStream out)
           
 int read()
           
 int read(byte[] b, int offset, int length)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipedInputStream

public PipedInputStream(PipedOutputStream out)
                 throws java.io.IOException
Parameters:
out - instance of the replacement PipedOutputStream implementation
Throws:
java.io.IOException - not thrown, for API compatibility to java.io.PipedInputStream
See Also:
PipedInputStream.PipedInputStream(java.io.PipedOutputStream)

PipedInputStream

public PipedInputStream()
See Also:
PipedInputStream.PipedInputStream()
Method Detail

connect

public void connect(PipedOutputStream out)
             throws java.io.IOException
Parameters:
out - instance of the replacement PipedOutputStream implementation
Throws:
java.io.IOException - not thrown, for API compatibility to java.io.PipedInputStream
See Also:
PipedInputStream.connect(java.io.PipedOutputStream)

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
Overrides:
available in class java.io.InputStream

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream

g-Eclipse
Release 1.0.0