gov.nih.nlm.mms
Class ChecksumValidator
java.lang.Object
gov.nih.nlm.mms.ChecksumValidator
- public class ChecksumValidator
- extends Object
Validates byte counts and MD5s for the NLM files.
- Author:
- Deborah Shapiro
Method Summary |
boolean |
validate()
Validates the user selections for directories based on file length checks
and MD5 checksums. |
boolean |
validateByteCountsOnly()
Validates the user selections for directories based on file length checks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gpl
protected GlassPaneListener gpl
main_files
protected final List main_files
extra_files
protected final List extra_files
ChecksumValidator
public ChecksumValidator(File dir,
GlassPaneListener gpl)
- Instantiates a
ChecksumValidator
.
- Parameters:
dir
- the directory containing the NLM filesgpl
- GlassPaneListener
validate
public boolean validate()
throws IOException,
NoSuchAlgorithmException
- Validates the user selections for directories based on file length checks
and MD5 checksums.
- Returns:
true
if validation passes false
otherwise
- Throws:
IOException
NoSuchAlgorithmException
validateByteCountsOnly
public boolean validateByteCountsOnly()
throws IOException,
NoSuchAlgorithmException
- Validates the user selections for directories based on file length checks.
- Returns:
true
if validation passes false
otherwise
- Throws:
IOException
NoSuchAlgorithmException
Copyright ©2005