Purple Code

com.purpletech.io
Class MonitorInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--com.purpletech.io.MonitorInputStream

public class MonitorInputStream
extends java.io.FilterInputStream

"Tees" input to an output stream for monitoring


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
MonitorInputStream(java.io.InputStream in)
          sends all bytes to System.out
MonitorInputStream(java.io.InputStream in, java.io.PrintStream out)
          sends all bytes to System.out
 
Method Summary
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, 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

MonitorInputStream

public MonitorInputStream(java.io.InputStream in)
sends all bytes to System.out

Parameters:
in - the underlying input stream.

MonitorInputStream

public MonitorInputStream(java.io.InputStream in,
                          java.io.PrintStream out)
sends all bytes to System.out

Parameters:
in - the underlying input stream.
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
java.io.IOException

read

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

Documentation generated March 5 2003