-
public final class BlackWhiteListManage black-white list words, words are written in files line by line. There are four kind of words :
black word list
white word list
black regex list
white regex list
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBlackWhiteList.ListType
-
Field Summary
Fields Modifier and Type Field Description private final EnumMap<BlackWhiteList.ListType, SingleFiledLines>wordsprivate final HashSet<Pattern>whitePatternsprivate final HashSet<Pattern>blackPatternsprivate final Multiset<String>whiteWordsprivate final Multiset<String>blackWords
-
Constructor Summary
Constructors Constructor Description BlackWhiteList(BlackWhiteResourceConfig conf)BlackWhiteList(String blackWordsFile, String whiteWordsFile, String blackRegexFile, String whiteRegexFile)
-
Method Summary
Modifier and Type Method Description final EnumMap<BlackWhiteList.ListType, SingleFiledLines>getWords()final HashSet<Pattern>getWhitePatterns()final HashSet<Pattern>getBlackPatterns()final Multiset<String>getWhiteWords()final Multiset<String>getBlackWords()final Unitmerge(BlackWhiteList other)final Booleanvalidate(String words)final Stringfilter(String words)final Stringreport()final Unitload()-
-
Constructor Detail
-
BlackWhiteList
BlackWhiteList(BlackWhiteResourceConfig conf)
-
-
Method Detail
-
getWords
final EnumMap<BlackWhiteList.ListType, SingleFiledLines> getWords()
-
getWhitePatterns
final HashSet<Pattern> getWhitePatterns()
-
getBlackPatterns
final HashSet<Pattern> getBlackPatterns()
-
getWhiteWords
final Multiset<String> getWhiteWords()
-
getBlackWords
final Multiset<String> getBlackWords()
-
merge
final Unit merge(BlackWhiteList other)
-
-
-
-