public class InputStreamProgressMonitor extends FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
inputByteSize
The number of bytes to read in total
|
protected int |
inputBytesRead
The number of bytes read so far
|
in| Constructor and Description |
|---|
InputStreamProgressMonitor(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBytesRead() |
int |
getBytesRemaining() |
double |
getProgressFraction() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, close, mark, markSupportedprotected int inputByteSize
protected int inputBytesRead
public InputStreamProgressMonitor(InputStream in)
public int getBytesRead()
public int getBytesRemaining()
public double getProgressFraction()
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.