core/src/main/java/org/owasp/encoder/EncodedWriter.java
private void flushBufferToWriter() throws IOException {
        _out.write(_buffer.array(), 0, _buffer.position());
        _buffer.clear();
    }
private void flushBufferToWriter() throws IOException {
        _out.write(_buffer.array(), 0, _buffer.position());
        _buffer.clear();
    }
Flushes the contents of the buffer to the writer and resets the buffer to make room for more input.

@throws IOException thrown by the wrapped output.