org.ws4d.java.communication.monitor
Class MonitoredInputStream
java.lang.Object
java.io.InputStream
org.ws4d.java.communication.monitor.MonitoredInputStream
- All Implemented Interfaces:
- java.io.Closeable
public final class MonitoredInputStream
- extends java.io.InputStream
This is a stream wrapper which allows to pass-through data to a given
OutputStream for monitoring.
| Methods inherited from class java.io.InputStream |
skip |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
MonitoredInputStream
public MonitoredInputStream(java.io.InputStream in,
ProtocolData pd)
read
public int read()
throws java.io.IOException
- Specified by:
read in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
- 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.InputStream
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Overrides:
available in class java.io.InputStream
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Overrides:
reset in class java.io.InputStream
- Throws:
java.io.IOException
skip
public long skip(int len)
throws java.io.IOException
- Throws:
java.io.IOException
mark
public void mark(int readlimit)
- Overrides:
mark in class java.io.InputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported in class java.io.InputStream
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