public class CountingOnlyOutputStream extends OutputStream
| Constructor and Description |
|---|
CountingOnlyOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
The number of bytes that have passed through this stream.
|
void |
write(byte[] b)
count as we write.
|
void |
write(byte[] b,
int off,
int len)
count as we write.
|
void |
write(int b)
count as we write.
|
close, flushpublic void write(byte[] b)
throws IOException
write in class OutputStreamb - IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamb - off - len - IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamb - IOExceptionpublic int getCount()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.