public class CountedByteOutputStream extends FilterOutputStream
out
Constructor and Description |
---|
CountedByteOutputStream(OutputStream out)
Creates a Counted Bytes output stream from the given stream.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
void |
write(byte[] b) |
void |
write(byte[] b,
int offset,
int len) |
void |
write(int b) |
close, flush
public CountedByteOutputStream(OutputStream out)
out
- stream to write topublic void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b, int offset, int len) throws IOException
write
in class FilterOutputStream
IOException
public int getCount()
Copyright © 2016. All rights reserved.