net.sf.jfilesync.io
Class CapivaraFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by net.sf.jfilesync.io.CapivaraFileInputStream
All Implemented Interfaces:
java.io.Closeable, CopyStatusStream

public class CapivaraFileInputStream
extends java.io.FileInputStream
implements CopyStatusStream


Field Summary
private  long bytesRead
           
 
Constructor Summary
CapivaraFileInputStream(java.io.File file)
           
CapivaraFileInputStream(java.io.FileDescriptor fdObj)
           
CapivaraFileInputStream(java.lang.String name)
           
 
Method Summary
 long getBytesDone()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FileInputStream
available, close, finalize, getChannel, getFD, skip
 
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
 

Field Detail

bytesRead

private long bytesRead
Constructor Detail

CapivaraFileInputStream

public CapivaraFileInputStream(java.io.File file)
                        throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

CapivaraFileInputStream

public CapivaraFileInputStream(java.io.FileDescriptor fdObj)

CapivaraFileInputStream

public CapivaraFileInputStream(java.lang.String name)
                        throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

getBytesDone

public long getBytesDone()
                  throws java.io.IOException
Specified by:
getBytesDone in interface CopyStatusStream
Throws:
java.io.IOException