public void write(int b) throws IOException {
  out.write(b);
  cksum.update(b);
}

public void write ( int b ) throws IOException { out . write ( b ) ; cksum . update ( b ) ; }
writes a byte . will block until the byte is actually written .
