Class ResettableBufferedWriter

    • Constructor Detail

      • ResettableBufferedWriter

        public ResettableBufferedWriter​(Writer writer,
                                        int bufferSize,
                                        String characterEncoding)
        Construct a new resettable buffered writer which wraps the given writer and forcibly buffers everything until the given buffer size in bytes, regardless of flush calls. The given character encoding is used to measure the amount of already written bytes in the buffer. regardless of flush calls.
        Parameters:
        writer - The wrapped writer.
        bufferSize - The buffer size.
        characterEncoding - The character encoding.