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
- This class is not thread-safe
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcount(long written) Deprecated.Increments the counter of already written bytes.longDeprecated.Returns the current number of bytes written to this stream.voidwrite(byte[] b) Deprecated.voidwrite(byte[] b, int off, int len) Deprecated.voidwrite(int b) Deprecated.Methods inherited from class java.io.FilterOutputStream
close, flush
-
Constructor Details
-
CountingOutputStream
Deprecated.
-
-
Method Details
-
count
Deprecated.Increments the counter of already written bytes. Doesn't increment if the EOF has been hit (written == -1)- Parameters:
written- the number of bytes written
-
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.