de.spieleck.app.jacson.filter
Class KeyWordFilter
java.lang.Object
de.spieleck.app.jacson.PluginBase
de.spieleck.app.jacson.filter.FilterBase
de.spieleck.app.jacson.filter.ConstFilter
de.spieleck.app.jacson.filter.KeyWordFilter
- All Implemented Interfaces:
- ConfigVerify.Acceptor, FilterNames, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately
- public class KeyWordFilter
- extends ConstFilter
Filter which filters out all chunks that are contained in the KeyWordList
or does the exact opposite. The keyword list is specified by the
Key_WORD_LIST_NODE. To use more than one key word separate them with spaces.
- Author:
- Patrick Carl
Field Summary |
static java.lang.String |
KEY_WORD_LIST_NODE
name of the config node which contains the key words |
protected java.util.Set |
keyWords
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_WORD_LIST_NODE
public static final java.lang.String KEY_WORD_LIST_NODE
- name of the config node which contains the key words
- See Also:
- Constant Field Values
keyWords
protected java.util.Set keyWords
KeyWordFilter
public KeyWordFilter()
init
public void init(ConfigNode config,
JacsonRegistry registry)
throws JacsonConfigException
- Specified by:
init
in interface JacsonRegistrable
- Overrides:
init
in class ConstFilter
- Throws:
JacsonConfigException
accept
public boolean accept(ConfigNode node)
- Specified by:
accept
in interface ConfigVerify.Acceptor
- Overrides:
accept
in class ConstFilter
putChunk
public void putChunk(java.lang.String chunk)
throws JacsonException
- Description copied from interface:
JacsonChunkDrain
- Feed a single chunk into this filter
- Specified by:
putChunk
in interface JacsonChunkDrain
- Overrides:
putChunk
in class ConstFilter
- Throws:
JacsonException
Copyleft 2002 spieleck.de.