-
- All Implemented Interfaces:
-
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class CountingOutputStream extends FilterOutputStream
An OutputStream that counts the number of bytes written.
-
-
Constructor Summary
Constructors Constructor Description CountingOutputStream(OutputStream out)
Constructs a new {@code FilterOutputStream}
with{@code out}
as its target stream.
-
Method Summary
-
-
Constructor Detail
-
CountingOutputStream
CountingOutputStream(OutputStream out)
Constructs a new{@code FilterOutputStream}
with{@code out}
as its target stream.- Parameters:
out
- the target stream that this stream writes to.
-
-
-
-