|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tootsville.hangman.Censor
public class Censor
Provides chat filtering.
Constructor Summary | |
---|---|
Censor()
|
Method Summary | |
---|---|
static void |
addToAdjacentList(java.lang.String word)
Add a word to the adjacent word list. |
static void |
addToBlackList(java.lang.String word)
Add a word to the Black list. |
static void |
addToWhiteList(java.lang.String word)
Add a word to the White list. |
static void |
addToWorseList(java.lang.String word)
Add a word to the Worse (Red) list. |
FilterResult |
checkLists(java.lang.String token)
TODO: document this method (brpocock, Oct 13, 2009) |
void |
destroy()
Release the hash tables. |
FilterResult |
filterMessage(java.lang.String text)
Filter the message. |
static int |
getBlackListLength()
TODO: document this method (brpocock, Oct 13, 2009) |
int |
getWhiteListLength()
TODO: document this method (brpocock, Oct 13, 2009) |
static int |
getWorseListLength()
TODO: document this method (brpocock, Oct 13, 2009) |
static void |
init()
Initialize the filtering word sets. |
static void |
loadLists(java.sql.Connection db)
TODO: document this method (brpocock, Oct 13, 2009) |
static void |
prime(java.sql.Connection databaseConnection)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Censor()
Method Detail |
---|
public static void addToAdjacentList(java.lang.String word)
word
- WRITEMEpublic static void addToBlackList(java.lang.String word)
word
- WRITEMEpublic static void addToWhiteList(java.lang.String word)
word
- WRITEMEpublic static void addToWorseList(java.lang.String word)
word
- WRITEMEpublic static int getBlackListLength()
public static int getWorseListLength()
public static void init()
public static void loadLists(java.sql.Connection db)
db
- WRITEMEpublic static void prime(java.sql.Connection databaseConnection)
databaseConnection
- An open database connection over which
the censorship records can be loadedpublic FilterResult checkLists(java.lang.String token)
AbstractCensor
checkLists
in interface AbstractCensor
token
- WRITEME
AbstractCensor.checkLists(java.lang.String)
public void destroy()
public FilterResult filterMessage(java.lang.String text)
AbstractCensor
filterMessage
in interface AbstractCensor
text
- WRITEME
AbstractCensor.filterMessage(java.lang.String)
public int getWhiteListLength()
AbstractCensor
getWhiteListLength
in interface AbstractCensor
AbstractCensor.getWhiteListLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |