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
Modifier and Type Method Description long
getBytesRead()
int
read()
int
read(byte[] bytes)
int
read(byte[] bytes, int i, int i1)
Methods inherited from class java.io.FileInputStream
available, close, getChannel, getFD, skip
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
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 Details
-
getBytesRead
public long getBytesRead() -
read
public int read() throws java.io.IOException- Overrides:
read
in classjava.io.FileInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] bytes) throws java.io.IOException- Overrides:
read
in classjava.io.FileInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] bytes, int i, int i1) throws java.io.IOException- Overrides:
read
in classjava.io.FileInputStream
- Throws:
java.io.IOException
-