Package gaiasky.util.io
Class FileInfoInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FileInputStream
-
- gaiasky.util.io.FileInfoInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class FileInfoInputStream extends java.io.FileInputStream
-
-
Constructor Summary
Constructors Constructor Description FileInfoInputStream(java.io.File file)FileInfoInputStream(java.lang.String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBytesRead()intread()intread(byte[] bytes)intread(byte[] bytes, int i, int i1)-
Methods inherited from class java.io.FileInputStream
available, close, finalize, getChannel, getFD, skip
-
-
-
-
Constructor Detail
-
FileInfoInputStream
public FileInfoInputStream(java.lang.String file) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
FileInfoInputStream
public FileInfoInputStream(java.io.File file) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
-
Method Detail
-
getBytesRead
public long getBytesRead()
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FileInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] bytes) throws java.io.IOException- Overrides:
readin classjava.io.FileInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] bytes, int i, int i1) throws java.io.IOException- Overrides:
readin classjava.io.FileInputStream- Throws:
java.io.IOException
-
-