public class CountingOutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
CountingOutputStream(OutputStream out)
Creates a new
CountingOutputStream instance. |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesWritten()
Get the number of bytes written so far.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int offset,
int length) |
void |
write(int b) |
close, flushpublic CountingOutputStream(OutputStream out)
CountingOutputStream instance.out - Where to send bytes onto.public void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int offset,
int length)
throws IOException
write in class FilterOutputStreamIOExceptionpublic long getBytesWritten()
long value.Copyright © 1999–2017 Apache OODT. All rights reserved.