Package com.google.common.io
Class CountingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.google.common.io.CountingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
@Beta
@Deprecated(since="2022-12-01")
public final class CountingInputStream
extends FilterInputStream
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
An
InputStream
that counts the number of bytes read.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Wraps another input stream, counting the number of bytes read. -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, markSupported, read
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CountingInputStream
Deprecated.Wraps another input stream, counting the number of bytes read.- Parameters:
in
- the input stream to be wrapped
-
-
Method Details
-
getCount
public long getCount()Deprecated.Returns the number of bytes read. -
read
Deprecated.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
Deprecated.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
Deprecated.- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) Deprecated.- Overrides:
mark
in classFilterInputStream
-
reset
Deprecated.- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-