de.beamertool.viewer.data
Class WordFilter
java.lang.Object
de.beamertool.viewer.data.WordFilter
public class WordFilter
- extends Object
This class supplies a wordfiltering method to detect strings with unwanted
content.
- Author:
- ocm-zeeman
WordFilter
public WordFilter()
checkForBadWord
public static boolean checkForBadWord(String text)
- This method scans the given text for a bad word and return true if it
find a bad word
- Parameters:
text - -
The text which should be scanned
- Returns:
- true if there is at least one bad word in the text, otherwise
false
init
public static void init(Collection<String> badWordsList)