public class InputStreamProgressMonitor
extends java.io.FilterInputStream
Modifier and Type | Field | Description |
---|---|---|
protected int |
inputByteSize |
The number of bytes to read in total
|
protected int |
inputBytesRead |
The number of bytes read so far
|
Constructor | Description |
---|---|
InputStreamProgressMonitor(java.io.InputStream in) |
Modifier and Type | Method | 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) |
protected int inputByteSize
protected int inputBytesRead
public InputStreamProgressMonitor(java.io.InputStream in)
public int getBytesRead()
public int getBytesRemaining()
public double getProgressFraction()
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.