Closeable, Flushable, AutoCloseablepublic final class CountOutputStream extends OutputStream
OutputStream that counts the written bytes.| Modifier and Type | Method | Description |
|---|---|---|
int |
getBytesWritten() |
|
void |
write(byte[] buf) |
Counts the written bytes.
|
void |
write(byte[] buf,
int off,
int len) |
Counts the written bytes.
|
void |
write(int b) |
Counts the written bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, flushpublic void write(byte[] buf,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(byte[], int, int)public void write(byte[] buf)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(byte[])public void write(int b)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(int)public int getBytesWritten()
Copyright © 2018. All rights reserved.