public class ProgressInputStream
extends java.io.FilterInputStream
Constructor and Description |
---|
ProgressInputStream(java.io.InputStream in,
int totalBytes,
IProgressMonitor monitor)
Creates a progress input stream with a listener specifying the total number of bytes to read.
|
public ProgressInputStream(java.io.InputStream in, int totalBytes, IProgressMonitor monitor)
in
- the underlying input stream.monitor
- the listener to notify or null
.totalBytes
- the total number of bytes to be read.public int read() 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 mark(int readlimit)
mark
in class java.io.FilterInputStream
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream