@Beta public final class CountingOutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
CountingOutputStream(OutputStream
Wraps another output stream, counting the number of bytes written.
|
public CountingOutputStream(OutputStreamout)
out - the output stream to be wrapped
public long getCount()
public void write(byte[] b,
int off,
int len)
throws IOException
write in class
FilterOutputStream
IOException
public void write(int b)
throws IOException
write in class
FilterOutputStream
IOException
public void close()
throws IOException
close in interface
Closeable
close in interface
AutoCloseable
close in class
FilterOutputStream
IOException