de.spieleck.app.jacson.filter
Class SimpleContainsFilter
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.SimpleContainsFilter
- All Implemented Interfaces:
- ConfigVerify.Acceptor, FilterNames, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately
- public class SimpleContainsFilter
- extends ConstFilter
A simple alternative to RegEXpContainsFilter, which only works for
fixed strings, but is somewhat faster in that case.
- Author:
- fsn
Field Summary |
protected java.lang.String |
pattern
The String to find |
static java.lang.String |
PATTERN
Setup node for the pattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATTERN
public static final java.lang.String PATTERN
- Setup node for the pattern
- See Also:
- Constant Field Values
pattern
protected java.lang.String pattern
- The String to find
SimpleContainsFilter
public SimpleContainsFilter()
init
public void init(ConfigNode node,
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.