public class CountingOutputStream
extends java.io.FilterOutputStream
Constructor and Description |
---|
CountingOutputStream(java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
long |
getByteCount()
Get the number of bytes counted in a long.
|
int |
getCount()
Get the count of the bytes.
|
void |
resetCount()
Reset the byte counter.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public int getCount()
public long getByteCount()
public void resetCount()