Class CountingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.compress.utils.CountingOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Stream that tracks the number of bytes read.
- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterOutputStream
close, flushMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CountingOutputStream
-
-
Method Details
-
getBytesWritten
public long getBytesWritten()Returns the current number of bytes written to this stream.- Returns:
- the number of written bytes
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-