com.mindbright.util
Class InputStreamPipe

java.lang.Object
  extended byjava.io.InputStream
      extended bycom.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
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] buf,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

available

public int available()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()

put

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

put

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

eof

protected void eof()