Package com.helger.commons.io.stream
Class CountingWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
com.helger.commons.io.stream.WrappedWriter
com.helger.commons.io.stream.CountingWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
A wrapper around an
Writer that counts the number of read chars.- Since:
- 9.3.8
- Author:
- Philip Helger
-
Field Summary
Fields inherited from class java.io.FilterWriter
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.helger.commons.io.stream.WrappedWriter
getWrappedWriterMethods inherited from class java.io.FilterWriter
close, flush, write
-
Constructor Details
-
CountingWriter
-
-
Method Details
-
write
- Overrides:
writein classFilterWriter- Throws:
IOException
-
write
- Overrides:
writein classFilterWriter- Throws:
IOException
-
getCharsWritten
- Returns:
- The number of written chars.
-
toString
- Overrides:
toStringin classWrappedWriter
-