de.beamertool.viewer.data
Class WordFilter

java.lang.Object
  extended by 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

Constructor Summary
WordFilter()
           
 
Method Summary
static boolean checkForBadWord(String text)
          This method scans the given text for a bad word and return true if it find a bad word
static void init(Collection<String> badWordsList)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordFilter

public WordFilter()
Method Detail

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)