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 .
