Code example for Checksum

Methods: reset

0
  //Checksum Interface. Just a wrapper around member summer. 
  public long getValue() { 
    return summer.getValue();
  } 
  public void reset() { 
    summer.reset();
    inSum = 0;
  } 
  public void update( byte[] b, int off, int len ) {
    if ( len > 0 ) {
      summer.update( b, off, len );
      inSum += len;
    } 
  } 
  public void update( int b ) {
    summer.update( b );
    inSum += 1;
  } 
   
  /** 
   * This just provides a dummy implimentation for Checksum class