@Beta public final class CountingOutputStream extends FilterOutputStream
Constructor and Description |
---|
CountingOutputStream(OutputStream out)
Wraps another output stream, counting the number of bytes written.
|
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Returns the number of bytes written.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flush, write
public CountingOutputStream(@Nullable OutputStream out)
out
- the output stream to be wrappedpublic 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
Copyright © 2010 - 2020 Adobe. All Rights Reserved