Closeable
, Flushable
, AutoCloseable
public 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, wait
write
public void close()
close
in interface AutoCloseable
close
in interface Closeable
close
in class OutputStream
public void flush()
flush
in interface Flushable
flush
in class OutputStream
public void write(byte[] b, int off, int len)
write
in class OutputStream
public void write(int b)
write
in class OutputStream
public int getCount()
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.