|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.ChecksumValidator
public class ChecksumValidator
Validates byte counts and MD5s for the NLM files.
| Field Summary | |
|---|---|
protected List |
extra_files
|
protected GlassPaneListener |
gpl
|
protected List |
main_files
|
| Constructor Summary | |
|---|---|
ChecksumValidator(File dir,
File log_file,
GlassPaneListener gpl)
Instantiates a ChecksumValidator. |
|
ChecksumValidator(File dir,
GlassPaneListener gpl)
Instantiates a ChecksumValidator. |
|
| 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 |
| Field Detail |
|---|
protected GlassPaneListener gpl
protected final List main_files
protected final List extra_files
| Constructor Detail |
|---|
public ChecksumValidator(File dir,
File log_file,
GlassPaneListener gpl)
ChecksumValidator.
dir - the directory containing the NLM fileslog_file - the log filegpl - GlassPaneListener
public ChecksumValidator(File dir,
GlassPaneListener gpl)
ChecksumValidator.
dir - the directory containing the NLM filesgpl - GlassPaneListener| Method Detail |
|---|
public boolean validate()
throws IOException,
NoSuchAlgorithmException
true if validation passes false
otherwise
IOException
NoSuchAlgorithmException
public boolean validateByteCountsOnly()
throws IOException,
NoSuchAlgorithmException
true if validation passes false
otherwise
IOException
NoSuchAlgorithmException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||