com.mindbright.util
Class OutputStreamPipe

java.lang.Object
  extended byjava.io.OutputStream
      extended bycom.mindbright.util.OutputStreamPipe

public final class OutputStreamPipe
extends java.io.OutputStream


Constructor Summary
OutputStreamPipe()
           
OutputStreamPipe(InputStreamPipe sink)
           
 
Method Summary
 void close()
           
 void connect(InputStreamPipe sink)
           
 void flush()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamPipe

public OutputStreamPipe(InputStreamPipe sink)
                 throws java.io.IOException

OutputStreamPipe

public OutputStreamPipe()
Method Detail

connect

public void connect(InputStreamPipe sink)
             throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()

close

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