Package com.helger.commons.io.stream
Class CountingFileInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
com.helger.commons.io.stream.CountingFileInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
A special
FileInputStream sub class that keeps track of all read
bytes for the statistics handler.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCountingFileInputStream(File aFile) CountingFileInputStream(String sFilename) -
Method Summary
Methods inherited from class java.io.FileInputStream
available, close, getChannel, getFD, readAllBytes, readNBytes, skip, transferToMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readNBytes, reset, skipNBytes
-
Constructor Details
-
CountingFileInputStream
- Throws:
FileNotFoundException
-
CountingFileInputStream
- Throws:
FileNotFoundException
-
-
Method Details
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-