public class CountingFileInputStream extends FileInputStream
FileInputStream sub class that keeps track of all read
bytes for the statistics handler.| Constructor and Description |
|---|
CountingFileInputStream(File aFile) |
CountingFileInputStream(String sFilename) |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int nOffset,
int nLength) |
available, close, finalize, getChannel, getFD, skipmark, markSupported, resetpublic CountingFileInputStream(@Nonnull File aFile) throws FileNotFoundException
FileNotFoundExceptionpublic CountingFileInputStream(@Nonnull String sFilename) throws FileNotFoundException
FileNotFoundExceptionpublic int read()
throws IOException
read in class FileInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FileInputStreamIOExceptionpublic int read(byte[] b,
int nOffset,
int nLength)
throws IOException
read in class FileInputStreamIOExceptionCopyright © 2014–2022 Philip Helger. All rights reserved.