java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.grogra.util.CountingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
void
mark
(int readlimit) int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) void
reset()
void
setMonitor
(CountingInputStream.Monitor monitor, long resolution) long
skip
(long n) Methods inherited from class java.io.FilterInputStream
available, markSupported
Methods 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:
mark
in classFilterInputStream
-
reset
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
getBytesRead
public long getBytesRead() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-