Class CountingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.compress.utils.CountingOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Deprecated.
Stream that tracks the number of bytes read.
- Since:
- 1.3
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates aCountingOutputStreamfilter built on top of the specified underlying output stream. -
Method Summary
Methods inherited from class java.io.FilterOutputStream
close, flushMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CountingOutputStream
Deprecated.Creates aCountingOutputStreamfilter built on top of the specified underlying output stream.- Parameters:
out- the underlying output stream to be assigned to the fieldthis.outfor later use, ornullif this instance is to be created without an underlying stream.
-
-
Method Details
-
getBytesWritten
public long getBytesWritten()Deprecated.Returns the current number of bytes written to this stream.- Returns:
- the number of written bytes
-
write
Deprecated.- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
Deprecated.- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
Deprecated.- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
CountingOutputStream.