public interface SensitiveWord
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(String txt) |
boolean |
contains(String txt,
SensitiveMatchType matchType) |
List<String> |
getSensitiveWord(String txt) |
List<String> |
getSensitiveWord(String txt,
SensitiveMatchType matchType) |
void |
init() |
void |
init(InputStream inputStream) |
void |
init(Set<String> sensitiveWordSet) |
SensitiveResult |
replaceSensitiveWord(String txt,
char replaceStr) |
SensitiveResult |
replaceSensitiveWord(String txt,
char replaceStr,
SensitiveMatchType matchType) |
void init(InputStream inputStream)
void init()
boolean contains(String txt, SensitiveMatchType matchType) throws NotInitException
NotInitExceptionboolean contains(String txt) throws NotInitException
NotInitExceptionList<String> getSensitiveWord(String txt, SensitiveMatchType matchType) throws NotInitException
NotInitExceptionList<String> getSensitiveWord(String txt) throws NotInitException
NotInitExceptionSensitiveResult replaceSensitiveWord(String txt, char replaceStr, SensitiveMatchType matchType) throws NotInitException
NotInitExceptionSensitiveResult replaceSensitiveWord(String txt, char replaceStr) throws NotInitException
NotInitExceptionCopyright © 2019. All rights reserved.