out.write(buf, off, len); sum.update(buf, off, len);
out.write(bval); sum.update(bval);
  public void write (byte[] buf, int off, int len) throws IOException  {    out.write(buf, off, len);    sum.update(buf, off, len);  }