public class CountingOutputStream extends WrappedOutputStream
OutputStream that counts the number of read
bytes.| Constructor and Description |
|---|
CountingOutputStream(OutputStream aSourceOS) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesWritten() |
String |
toString() |
void |
write(byte[] b,
int nOffset,
int nLength) |
void |
write(int b) |
close, flush, getWrappedOutputStream, writepublic CountingOutputStream(@Nonnull OutputStream aSourceOS)
public void write(int b)
throws IOException
write in class WrappedOutputStreamIOExceptionpublic void write(byte[] b,
int nOffset,
int nLength)
throws IOException
write in class WrappedOutputStreamIOException@Nonnegative public long getBytesWritten()
public String toString()
toString in class WrappedOutputStreamCopyright © 2006–2014 phloc systems. All rights reserved.