private void checkFailed() throws WrongMessageDigestException {
  if (failed != null) {
    WrongMessageDigestException exception=new WrongMessageDigestException(failed);
    logger.log(Levels.FAILED,"Incorrect message digest",exception);
    throw exception;
  }
}

private void checkFailed ( ) throws WrongMessageDigestException { if ( failed != null ) { WrongMessageDigestException exception = new WrongMessageDigestException ( failed ) ; logger . log ( Levels . FAILED , "Incorrect message digest" , exception ) ; throw exception ; } }
throws an exception if the message digest was found to be incorrect . call this method before performing any i / o operations to insure that the same exception continues to be thrown after an incorrect message digest is discovered .
