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 .