public class ProgressInputStream
extends java.io.FileInputStream
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOTAL_NUM_BYTE_READ |
| Constructor and Description |
|---|
ProgressInputStream(java.io.File in,
long maxNumBytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) |
long |
getMaxNumBytes() |
long |
getTotalNumBytesRead() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l) |
void |
reset() |
long |
skip(long n) |
public static final java.lang.String TOTAL_NUM_BYTE_READ
public ProgressInputStream(java.io.File in,
long maxNumBytes)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic long getMaxNumBytes()
public long getTotalNumBytesRead()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
public int read()
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FileInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStream