public class CountedOutputStream
extends FilterOutputStream
| Modifier and Type | Field and Description |
|---|---|
private long |
nWritten
Count of the number of bytes written to the stream so far
|
| Constructor and Description |
|---|
CountedOutputStream(OutputStream out)
Wrap an output stream
|
| Modifier and Type | Method and Description |
|---|---|
long |
nWritten()
Find out how many bytes have been written so far
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
private long nWritten
public CountedOutputStream(OutputStream out)
public long nWritten()
public void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOException