public synchronized void write(int b) throws IOException {
  if (count >= buf.length) {
    flushBuffer();
  }
  totalBytesWritten++;
  fireProgress();
  lastActivityTime=System.currentTimeMillis();
  buf[count++]=(byte)b;
}

public synchronized void write ( int b ) throws IOException { if ( count >= buf . length ) { flushBuffer ( ) ; } totalBytesWritten ++ ; fireProgress ( ) ; lastActivityTime = System . currentTimeMillis ( ) ; buf [ count ++ ] = ( byte ) b ; }
writes the specified byte to this buffered output stream .
