public class ScoreFingerprints
extends java.lang.Object
Constructor and Description |
---|
ScoreFingerprints(java.lang.String matcher,
java.lang.String fpFile1,
java.lang.String fpFile2)
Constructor that creates a matcher object and two Base64 encoded fingerprint string objects
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFingerprint(java.lang.String filename)
Extracts the Base64 encoded fingerprint string from the given XML fingerprint digest file
|
static void |
main(java.lang.String[] args)
Compares two XML fingerprints and provides a score for their degree of similarity.
|
void |
printMatch()
Depending on the matcher, prints either the boolean match or integer similarity of these two fingerprints
|
public ScoreFingerprints(java.lang.String matcher, java.lang.String fpFile1, java.lang.String fpFile2)
matcher
- the string matcher name to use to determine the score of these fingerprintsfpFile1
- the string filename of the first fingerprintfpFile2
- the string filename of the second fingerprintpublic java.lang.String getFingerprint(java.lang.String filename)
filename
- the string filename of the XML fingerprint digest containing the Base64 encoded fingerprintpublic void printMatch()
public static void main(java.lang.String[] args)
args
- array of string command line argumentsargs[0]
the matcher name to use to determine the score of these fingerprintsargs[1]
the filename of the first fingerprintargs[2]
the filename of the second fingerprint