public class CountingWriter extends WrappedWriter
Writer that counts the number of read chars.out| Constructor and Description |
|---|
CountingWriter(Writer aSourceOS) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCharsWritten() |
String |
toString() |
void |
write(char[] aBuf,
int nOfs,
int nLen) |
void |
write(int b) |
getWrappedWriterclose, flush, writepublic void write(int b)
throws IOException
write in class FilterWriterIOExceptionpublic void write(@Nonnull char[] aBuf, int nOfs, int nLen) throws IOException
write in class FilterWriterIOException@Nonnegative public final long getCharsWritten()
public String toString()
toString in class WrappedWriterCopyright © 2014–2019 Philip Helger. All rights reserved.