org.ws4d.java.communication.monitor
Class MonitoredOutputStream
java.lang.Object
java.io.OutputStream
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.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
MonitoredOutputStream
public MonitoredOutputStream(java.io.OutputStream out,
ProtocolData pd)
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