Closeable, Flushable, AutoCloseablepublic class CounterOutputStream extends OutputStream
| Constructor | Description |
|---|---|
CounterOutputStream() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
flush() |
|
int |
getCount() |
Returns message size
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic void close()
close in interface AutoCloseableclose in interface Closeableclose in class OutputStreampublic void flush()
flush in interface Flushableflush in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void write(int b)
write in class OutputStreampublic int getCount()
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.