org.bdgp.io
Class ProgressableFileInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FileInputStream
|
+--org.bdgp.io.ProgressableFileInputStream
- public class ProgressableFileInputStream
- extends java.io.FileInputStream
Methods inherited from class java.io.FileInputStream |
available, close, finalize, getFD |
Methods inherited from class java.io.InputStream |
mark, markSupported, reset |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProgressableFileInputStream
public ProgressableFileInputStream(java.io.File in)
throws java.io.FileNotFoundException
ProgressableFileInputStream
public ProgressableFileInputStream(java.lang.String name)
throws java.io.FileNotFoundException
setPercentIncrement
public void setPercentIncrement(double percent)
getPercentIncremement
public double getPercentIncremement()
addProgressListener
public void addProgressListener(ProgressListener in)
removeProgressListener
public void removeProgressListener(ProgressListener in)
fireProgressEventIfNecessary
protected void fireProgressEventIfNecessary()
fireProgressEvent
protected void fireProgressEvent(ProgressEvent e)
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.FileInputStream
read
public int read(byte[] bytes)
throws java.io.IOException
- Overrides:
read
in class java.io.FileInputStream
read
public int read(byte[] bytes,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.FileInputStream
skip
public long skip(long amt)
throws java.io.IOException
- Overrides:
skip
in class java.io.FileInputStream