public class CountingOnlyOutputStream extends OutputStream
Constructor and Description |
---|
CountingOnlyOutputStream() |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
The number of bytes that have passed through this stream.
|
void |
write(byte[] b)
count as we write.
|
void |
write(byte[] b,
int off,
int len)
count as we write.
|
void |
write(int b)
count as we write.
|
close, flush
public CountingOnlyOutputStream()
public void write(byte[] b) throws IOException
write
in class OutputStream
b
- IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
b
- off
- len
- IOException
public void write(int b) throws IOException
write
in class OutputStream
b
- IOException
public int getCount()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.