jonelo.jacksum.ui
Class CheckFile
java.lang.Object
jonelo.jacksum.ui.CheckFile
public class CheckFile
extends java.lang.Object
This class can be used to check the file integrity of files against a given file list.
static String | COMMENTDEFAULT - Lines starting with this special String are ignored
|
CheckFile(String checkFile) - Creates a CheckFile.
|
MetaInfo | getMetaInfo() - Gets meta-information.
|
long | getModified()
|
long | getRemoved()
|
Summary | getSummary() - Get the Summary object.
|
Verbose | getVerbose() - Determines what verbose level is wanted.
|
String | getWorkingDir()
|
boolean | isList() - Determines whether a short list is wanted.
|
void | perform() - Reads the file which has been specified at the constructor.
|
void | setList(boolean list) - Sets the list value.
|
void | setMetaInfo(MetaInfo metaInfo) - Sets meta-information.
|
void | setSummary(Summary summary) - Sets the summary object containing all data for the summary.
|
void | setVerbose(Verbose verbose) - Sets the verbose object containing the verbose level.
|
void | setWorkingDir(String workingDir)
|
COMMENTDEFAULT
public static final String COMMENTDEFAULT
Lines starting with this special String are ignored
CheckFile
public CheckFile(String checkFile)
Creates a CheckFile.
checkFile
- a file containing filenames and their checksums
and in best case meta-information
getMetaInfo
public MetaInfo getMetaInfo()
Gets meta-information.
getModified
public long getModified()
getRemoved
public long getRemoved()
getSummary
public Summary getSummary()
Get the Summary object.
- the Summary object containing all data for the summary
getVerbose
public Verbose getVerbose()
Determines what verbose level is wanted.
- the verbose object containing the verbose level
getWorkingDir
public String getWorkingDir()
isList
public boolean isList()
Determines whether a short list is wanted.
- the boolean state whether a list is wanted.
perform
public void perform()
throws FileNotFoundException,
IOException,
MetaInfoVersionException,
ExitException
Reads the file which has been specified at the constructor.
The file is read and info about modifications are printed out.
The output is controlled by the set methods of this class.
setList
public void setList(boolean list)
Sets the list value.
list
- the boolean state whether a list is wanted.
setMetaInfo
public void setMetaInfo(MetaInfo metaInfo)
Sets meta-information.
This meta-information is the fallback if the checkFile doesn't contain
meta-information.
setSummary
public void setSummary(Summary summary)
Sets the summary object containing all data for the summary.
summary
- the Summary object.
setVerbose
public void setVerbose(Verbose verbose)
Sets the verbose object containing the verbose level.
verbose
- the Verbose object.
setWorkingDir
public void setWorkingDir(String workingDir)