Package com.google.common.io
Class CountingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.google.common.io.CountingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
@Beta
@Deprecated(since="2022-12-01")
public final class CountingOutputStream
extends FilterOutputStream
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
An OutputStream that counts the number of bytes written.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Wraps another output stream, counting the number of bytes written. -
Method Summary
Methods inherited from class java.io.FilterOutputStream
close, flush, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CountingOutputStream
Deprecated.Wraps another output stream, counting the number of bytes written.- Parameters:
out
- the output stream to be wrapped
-
-
Method Details
-
getCount
public long getCount()Deprecated.Returns the number of bytes written. -
write
Deprecated.- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
Deprecated.- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-