Package zombie.profanity
Class ProfanityFilter
java.lang.Object
zombie.profanity.ProfanityFilter
public class ProfanityFilter
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEBUG
static java.lang.String
LOCALES_DIR
-
Method Summary
Modifier and Type Method Description void
addFilterWord(java.lang.String string)
void
addLocale(Locale locale)
void
addLocale(Locale locale, boolean boolean1)
void
addWhiteListWord(java.lang.String string)
void
enable(boolean boolean1)
java.lang.String
filterString(java.lang.String string)
int
getFilterWordsCount()
static ProfanityFilter
getInstance()
Locale
getLocale()
boolean
isEnabled()
static void
printDebug(java.lang.String string)
void
removeFilterWord(java.lang.String string)
void
removeWhiteListWord(java.lang.String string)
void
setLocale(java.lang.String string)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEBUG
public static boolean DEBUG -
LOCALES_DIR
public static java.lang.String LOCALES_DIR
-
-
Method Details
-
getInstance
-
printDebug
public static void printDebug(java.lang.String string) -
enable
public void enable(boolean boolean1) -
isEnabled
public boolean isEnabled() -
getFilterWordsCount
public int getFilterWordsCount() -
addLocale
-
addLocale
-
getLocale
-
addWhiteListWord
public void addWhiteListWord(java.lang.String string) -
removeWhiteListWord
public void removeWhiteListWord(java.lang.String string) -
addFilterWord
public void addFilterWord(java.lang.String string) -
removeFilterWord
public void removeFilterWord(java.lang.String string) -
setLocale
public void setLocale(java.lang.String string) -
filterString
public java.lang.String filterString(java.lang.String string)
-