public class CounterOutputStream extends OutputStream
Constructor and Description |
---|
CounterOutputStream() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
int |
getCount()
Returns message size
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
write
public void close()
close
in interface Closeable
close
in interface AutoCloseable
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-2016 Apache Software Foundation. All Rights Reserved.