protected final void flushBuffer() throws IOException {
  if (bufferSize == 0)   return;
  flushed=true;
  ensureOpen();
  if (buf.pos == buf.offset)   return;
  initOut();
  out.write(buf.buf,buf.offset,buf.pos - buf.offset);
  buf.pos=buf.offset;
}

protected final void flushBuffer ( ) throws IOException { if ( bufferSize == 0 ) return ; flushed = true ; ensureOpen ( ) ; if ( buf . pos == buf . offset ) return ; initOut ( ) ; out . write ( buf . buf , buf . offset , buf . pos - buf . offset ) ; buf . pos = buf . offset ; }
flush the output buffer to the underlying character stream , without flushing the stream itself . this method is non - private only so that it may be invoked by printstream .
