public class MonitoredInputStream extends InputStream
A class that extends InputStream to
track statistics on the transfers.
| Constructor and Description |
|---|
MonitoredInputStream(InputStream in,
TransferMonitoringContext transferMonitoringContext) |
public MonitoredInputStream(InputStream in, TransferMonitoringContext transferMonitoringContext)
public 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 long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic 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 void reset()
throws IOException
reset in class InputStreamIOException