public class Fingerprint
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Fingerprint(java.lang.String fileName,
byte[] fingerprint,
int start_byte,
int end_byte)
Defualt constructor- fingerprints are byte arrays that contain tokenized
dictionary information
|
Fingerprint(java.lang.String fileName,
byte[] fingerprint,
java.util.List<Token> tokenList,
Dictionary dict,
int start_byte,
int end_byte)
Defualt constructor- fingerprints are byte arrays that contain tokenized
dictionary information
|
Fingerprint(java.lang.String fileName,
byte[] fingerprint,
java.util.List<Token> tokenList,
int start_byte,
int end_byte)
Default Constructor- fingerprints are byte arrays that contain tokenized
dictionary information
|
Fingerprint(java.lang.String fileName,
int start_byte,
int end_byte)
Defualt constructor- fingerprints are byte arrays that contain tokenized
dictionary information
|
Fingerprint(java.lang.String fileName,
java.lang.String base64Fingerprint,
int start_byte,
int end_byte)
Defualt constructor- fingerprints are byte arrays that contain tokenized
dictionary information
|
Fingerprint(java.lang.String fileName,
java.lang.String sdhash,
java.util.List<Token> tokenList,
int start_byte,
int end_byte)
Defualt constructor- fingerprints are byte arrays that contain tokenized
dictionary information
|
Modifier and Type | Method and Description |
---|---|
void |
clearDict()
sets the fingerprint dictionary to null
|
void |
clearTokenList()
clears the tokens that were used to create the fingerprint
|
java.lang.String |
getBase64Fingerprint() |
java.lang.Integer |
getDictNumTerms() |
int |
getEndByte() |
java.lang.String |
getFileName() |
byte[] |
getFingerprint() |
java.lang.String |
getSdhash() |
int |
getStartByte() |
java.util.List<Token> |
getTokenList() |
void |
printTokenList()
prints all tokens that are contained in the fingerprint
|
void |
setEndByte(int end_byte) |
void |
setFileName(java.lang.String fileName) |
void |
setFingerprint(byte[] fingerprint) |
void |
setFingerprint(Fingerprint fingerprint) |
void |
setStartByte(int start_byte) |
public Fingerprint(java.lang.String fileName, byte[] fingerprint, int start_byte, int end_byte)
fileName
- Filename that the fingerprint was created fromfingerprint
- an array of bytes that represent the fingerprintstart_byte
- the start location of a fingerprintend_byte
- the end location of a fingerprintpublic Fingerprint(java.lang.String fileName, byte[] fingerprint, java.util.List<Token> tokenList, int start_byte, int end_byte)
fileName
- Filename that the fingerprint was created fromtokenList
- the list of tokens used to create the fingerprintfingerprint
- an array of bytes that represent the fingerprintstart_byte
- the start location of a fingerprintend_byte
- the end location of a fingerprintpublic Fingerprint(java.lang.String fileName, byte[] fingerprint, java.util.List<Token> tokenList, Dictionary dict, int start_byte, int end_byte)
fileName
- Filename that the fingerprint was created fromfingerprint
- an array of bytes that represent the fingerprinttokenList
- the list of tokens used to create the fingerprintdict
- the dictionary used to create the fingerprintstart_byte
- the start location of a fingerprintend_byte
- the end location of a fingerprintpublic Fingerprint(java.lang.String fileName, java.lang.String sdhash, java.util.List<Token> tokenList, int start_byte, int end_byte)
fileName
- Filename that the fingerprint was created fromsdhash
- an array of bytes that represent the fingerprinttokenList
- the list of tokens used to create the fingerprintstart_byte
- the start location of a fingerprintend_byte
- the end location of a fingerprintpublic Fingerprint(java.lang.String fileName, int start_byte, int end_byte)
fileName
- Filename that the fingerprint was created fromstart_byte
- the start location of a fingerprintend_byte
- the end location of a fingerprintpublic Fingerprint(java.lang.String fileName, java.lang.String base64Fingerprint, int start_byte, int end_byte)
fileName
- Filename that the fingerprint was created frombase64Fingerprint
- a fingerprint that has been encoded in base64start_byte
- the start location of a fingerprintend_byte
- the end location of a fingerprintpublic void setFingerprint(Fingerprint fingerprint)
fingerprint
- the new fingerprint to replace the old fingerprintpublic void setFileName(java.lang.String fileName)
fileName
- the name of the file that was used to create a fingerprintpublic void setStartByte(int start_byte)
start_byte
- the start byte location where the fingerprint beginspublic void setEndByte(int end_byte)
end_byte
- the end byte location where the fingerprint endspublic void setFingerprint(byte[] fingerprint)
fingerprint
- a new byte fingerprint to replace the current byte fingerprintpublic byte[] getFingerprint()
public java.lang.String getBase64Fingerprint()
public int getStartByte()
public int getEndByte()
public java.lang.String getFileName()
public java.lang.String getSdhash()
public java.lang.Integer getDictNumTerms()
public void clearTokenList()
public void clearDict()
public java.util.List<Token> getTokenList()
public void printTokenList()