|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.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,
GlassPaneListener gpl)
Instantiates a ChecksumValidator . |
Method Summary | |
static Object |
displayTextFile(Component parent,
String title,
File file,
int rows,
int cols)
Displays a text file for approval or disapproval. |
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, 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
public static Object displayTextFile(Component parent, String title, File file, int rows, int cols)
File
.
parent
- the parent Component
title
- title for the displayfile
- the messagerows
- the number of rows to be displayed at one time without scrollingcols
- the number of columns to be displayed at one time without scrolling
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |