public class CountingOutputStream
extends java.io.FilterOutputStream
| Constructor and Description |
|---|
CountingOutputStream(java.io.OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
bytesWereWritten(int byteCount)
Override this to be notified of each batch of data.
|
long |
getByteCount() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int byteMe) |
public void write(int byteMe)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void bytesWereWritten(int byteCount)
public long getByteCount()