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


Constructor Summary
ProgressableFileInputStream(java.io.File in)
           
ProgressableFileInputStream(java.lang.String name)
           
 
Method Summary
 void addProgressListener(ProgressListener in)
           
protected  void fireProgressEvent(ProgressEvent e)
           
protected  void fireProgressEventIfNecessary()
           
 double getPercentIncremement()
           
 int read()
           
 int read(byte[] bytes)
           
 int read(byte[] bytes, int off, int len)
           
 void removeProgressListener(ProgressListener in)
           
 void setPercentIncrement(double percent)
           
 long skip(long amt)
           
 
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
 

Constructor Detail

ProgressableFileInputStream

public ProgressableFileInputStream(java.io.File in)
                            throws java.io.FileNotFoundException

ProgressableFileInputStream

public ProgressableFileInputStream(java.lang.String name)
                            throws java.io.FileNotFoundException
Method Detail

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