public class UniquePatternDetector
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_DELIMITER_CHARS
The default delimiter chars.
|
| Constructor and Description |
|---|
UniquePatternDetector(java.lang.String content)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDelimiterChar(char c)
Add a char to the set of delimiter chars.
|
java.lang.String |
getDelimiterChars()
Get the delimiter chars.
|
java.util.ArrayList<UniquePatternDetectorElement> |
getUniquePatterns(int minPatternLength)
Get a list of unique text patterns.
|
void |
removeDelimiterChar(char c)
Remove a char from the set of delimiter chars.
|
void |
setDelimiterChars(java.lang.String delimiterChars)
Set the delimiter chars.
|
public static final java.lang.String DEFAULT_DELIMITER_CHARS
public UniquePatternDetector(java.lang.String content)
content - the content from which the unique text patterns are detected.public java.lang.String getDelimiterChars()
public void setDelimiterChars(java.lang.String delimiterChars)
delimiterChars - the delimiter charspublic void removeDelimiterChar(char c)
c - the char to removepublic void addDelimiterChar(char c)
c - the char to addpublic java.util.ArrayList<UniquePatternDetectorElement> getUniquePatterns(int minPatternLength)
minPatternLength - the minimum length of an unique text pattern