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 InputStreamIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic final void mark(int readlimit)
mark in class InputStreampublic final boolean markSupported()
markSupported in class InputStreampublic final int read()
throws IOException
read in class InputStreamIOExceptionpublic final int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic final int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic final void reset()
throws IOException
reset in class InputStreamIOExceptionpublic final long skip(long n)
throws IOException
skip in class InputStreamIOException