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, readMethods 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:
readin classFilterInputStream- Throws:
IOException
-
read
Deprecated.- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
Deprecated.- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) Deprecated.- Overrides:
markin classFilterInputStream
-
reset
Deprecated.- Overrides:
resetin classFilterInputStream- Throws:
IOException
-