public class MonitoredInputStream extends InputStream
A class that extends InputStream
to
track statistics on the transfers.
Constructor and Description |
---|
MonitoredInputStream(InputStream in,
TransferMonitoringContext transferMonitoringContext) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public MonitoredInputStream(InputStream in, TransferMonitoringContext transferMonitoringContext)
public final int available() throws IOException
available
in class InputStream
IOException
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public final void mark(int readlimit)
mark
in class InputStream
public final boolean markSupported()
markSupported
in class InputStream
public final int read() throws IOException
read
in class InputStream
IOException
public final int read(byte[] b) throws IOException
read
in class InputStream
IOException
public final int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public final void reset() throws IOException
reset
in class InputStream
IOException
public final long skip(long n) throws IOException
skip
in class InputStream
IOException