java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.grogra.util.CountingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longvoidmark(int readlimit) intread()intread(byte[] b) intread(byte[] b, int off, int len) voidreset()voidsetMonitor(CountingInputStream.Monitor monitor, long resolution) longskip(long n) Methods inherited from class java.io.FilterInputStream
available, markSupportedMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
bytesRead
protected long bytesRead
-
-
Constructor Details
-
CountingInputStream
-
-
Method Details
-
setMonitor
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
getBytesRead
public long getBytesRead() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-