com.mindbright.util
Class InputStreamPipe

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--com.mindbright.util.InputStreamPipe

public final class InputStreamPipe
extends java.io.InputStream


Constructor Summary
InputStreamPipe()
           
InputStreamPipe(int bufferSize)
           
InputStreamPipe(OutputStreamPipe source)
           
 
Method Summary
 int available()
           
 void close()
           
 void connect(OutputStreamPipe source)
           
protected  void eof()
           
 void flush()
           
protected  void put(byte[] buf, int off, int len)
           
protected  void put(int b)
           
 int read()
           
 int read(byte[] buf, int off, int len)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamPipe

public InputStreamPipe(int bufferSize)

InputStreamPipe

public InputStreamPipe()

InputStreamPipe

public InputStreamPipe(OutputStreamPipe source)
                throws java.io.IOException
Method Detail

connect

public void connect(OutputStreamPipe source)
             throws java.io.IOException
java.io.IOException

read

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

read

public int read(byte[] buf,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
java.io.IOException

available

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

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.InputStream
java.io.IOException

flush

public void flush()

put

protected void put(int b)
            throws java.io.IOException
java.io.IOException

put

protected void put(byte[] buf,
                   int off,
                   int len)
            throws java.io.IOException
java.io.IOException

eof

protected void eof()