public class CountingOutputStream extends WrappedOutputStream
OutputStream that counts the number of read
bytes.out| Constructor and Description |
|---|
CountingOutputStream(OutputStream aSourceOS) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesWritten() |
String |
toString() |
void |
write(byte[] aBuf,
int nOfs,
int nLen) |
void |
write(int b) |
getWrappedOutputStreamclose, flush, writepublic CountingOutputStream(@Nonnull OutputStream aSourceOS)
public void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(@Nonnull byte[] aBuf, int nOfs, int nLen) throws IOException
write in class WrappedOutputStreamIOException@Nonnegative public final long getBytesWritten()
public String toString()
toString in class WrappedOutputStreamCopyright © 2014–2022 Philip Helger. All rights reserved.