Class CharacterCountingWriter

  • All Implemented Interfaces:
    Closeable, Flushable, Appendable, AutoCloseable

    public class CharacterCountingWriter
    extends Writer
    A Writer which delegates to another Writer, and counts the number of characters that gets written to the delegate.

    The resulting count is only reliable if no exceptions get thrown by any of the methods.