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.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.FilterInputStreampublic void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.FilterInputStream