public class DetectChange
extends java.lang.Object
| Constructor and Description |
|---|
DetectChange(java.lang.String[] args) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptFile(java.lang.String filename) |
protected void |
checkSum() |
protected void |
compare() |
void |
execute() |
protected java.util.TreeMap |
loadFiles(java.io.File directory) |
protected void |
loadFiles(java.util.TreeMap fileSet,
java.io.File directory,
java.lang.String subdir) |
protected java.util.List |
loadPatternFromFile(java.lang.String file) |
static void |
main(java.lang.String[] args) |
protected java.lang.String |
patternToRegEx(java.lang.String pattern) |
protected void |
processArguments(java.lang.String[] args) |
protected void |
showHelp() |
public DetectChange(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException,
java.security.NoSuchAlgorithmException
args - java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionprotected void processArguments(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionprotected java.util.List loadPatternFromFile(java.lang.String file)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String patternToRegEx(java.lang.String pattern)
protected void showHelp()
public void execute()
throws java.security.NoSuchAlgorithmException,
java.io.IOException
java.security.NoSuchAlgorithmExceptionjava.io.IOExceptionprotected void checkSum()
throws java.security.NoSuchAlgorithmException,
java.io.IOException
java.security.NoSuchAlgorithmExceptionjava.io.IOExceptionprotected void compare()
throws java.security.NoSuchAlgorithmException,
java.io.IOException
java.security.NoSuchAlgorithmExceptionjava.io.IOExceptionprotected java.util.TreeMap loadFiles(java.io.File directory)
throws java.security.NoSuchAlgorithmException,
java.io.IOException
java.security.NoSuchAlgorithmExceptionjava.io.IOExceptionprotected void loadFiles(java.util.TreeMap fileSet,
java.io.File directory,
java.lang.String subdir)
throws java.security.NoSuchAlgorithmException,
java.io.IOException
java.security.NoSuchAlgorithmExceptionjava.io.IOExceptionprotected boolean acceptFile(java.lang.String filename)