code: private void flushBufferToWriter() throws IOException {
          _out.write(_buffer.array(), 0, _buffer.position());
          _buffer.clear();
      }
docs: 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.