net.sf.jfilesync.io
Class CapivaraFileInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
net.sf.jfilesync.io.CapivaraFileInputStream
- All Implemented Interfaces:
- java.io.Closeable, CopyStatusStream
public class CapivaraFileInputStream
- extends java.io.FileInputStream
- implements CopyStatusStream
| 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 |
bytesRead
private long bytesRead
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
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