private void flushInternal() throws IOException {
  if (pos > 0) {
    out.write(buf,0,pos);
  }
  pos=0;
}

private void flushInternal ( ) throws IOException { if ( pos > 0 ) { out . write ( buf , 0 , pos ) ; } pos = 0 ; }
flushes the internal buffer .
