org.ws4d.java.communication.monitor
Class MonitoredOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.ws4d.java.communication.monitor.MonitoredOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class MonitoredOutputStream
extends java.io.OutputStream

This is a stream wrapper which allows to pass-through data to a given OutputStream for monitoring.


Constructor Summary
MonitoredOutputStream(java.io.OutputStream out, ProtocolData pd)
           
 
Method Summary
 void close()
           
 boolean equals(java.lang.Object obj)
           
 void flush()
           
 int hashCode()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int arg0)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredOutputStream

public MonitoredOutputStream(java.io.OutputStream out,
                             ProtocolData pd)
Method Detail

write

public void write(int arg0)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

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

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object