public void write(byte[] bytes,int length){
  if (digest == null) {
    return;
  }
  digest.update(bytes,0,length);
}

public void write ( byte [ ] bytes , int length ) { if ( digest == null ) { return ; } digest . update ( bytes , 0 , length ) ; }
write bytes , based on which we will calculate hash later on .
