public class ProgressInputStream extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private java.io.InputStream |
in |
private StreamProgressUpdater |
updater |
| Constructor and Description |
|---|
ProgressInputStream(java.io.InputStream in,
long size,
ProgressMonitor progressMonitor)
Constructs a new
ProgressInputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
private final StreamProgressUpdater updater
private final java.io.InputStream in
public ProgressInputStream(java.io.InputStream in, long size, ProgressMonitor progressMonitor)
ProgressInputStream.in - the stream to monitor. Must not be nullsize - the total size which will be sentprogressMonitor - the monitor to report topublic void close() throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b, int off, int len) throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read() throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException