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, markSupported
protected 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 FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.