public void flush() throws IOException {
  try {
    _writer.write(_buffer,0,_pos);
    _writer.flush();
  }
 catch (  IOException except) {
    if (_exception == null)     _exception=except;
    throw except;
  }
  _pos=0;
}

public void flush ( ) throws IOException { try { _writer . write ( _buffer , 0 , _pos ) ; _writer . flush ( ) ; } catch ( IOException except ) { if ( _exception == null ) _exception = except ; throw except ; } _pos = 0 ; }
flush the output stream . must be called when done printing the document , otherwise some text might be buffered .
