de.spieleck.app.jacson.filter
Class RegExpSubstFilter
java.lang.Object
de.spieleck.app.jacson.PluginBase
de.spieleck.app.jacson.filter.FilterBase
de.spieleck.app.jacson.filter.RegExpSubstFilter
- All Implemented Interfaces:
- ConfigVerify.Acceptor, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately
- public class RegExpSubstFilter
- extends FilterBase
- implements ConfigVerify.Acceptor
Filter to perform regexp based subsitiution (interpolated $i)
on a chunk.
- Author:
- fsn
Field Summary |
protected boolean |
debug
|
static java.lang.String |
DEBUG_NODE
|
static java.lang.String |
NSUBST_NODE
|
protected int |
numSubs
limit the number of Substitutions |
protected org.apache.oro.text.regex.Pattern |
pattern
oro-Regexp-Pattern |
protected RegExpUtil |
rutil
|
protected org.apache.oro.text.regex.Substitution |
subst
Subsitution-Pattern |
static java.lang.String |
SUBST_NODE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NSUBST_NODE
public static final java.lang.String NSUBST_NODE
- See Also:
- Constant Field Values
SUBST_NODE
public static final java.lang.String SUBST_NODE
- See Also:
- Constant Field Values
DEBUG_NODE
public static final java.lang.String DEBUG_NODE
- See Also:
- Constant Field Values
pattern
protected org.apache.oro.text.regex.Pattern pattern
- oro-Regexp-Pattern
subst
protected org.apache.oro.text.regex.Substitution subst
- Subsitution-Pattern
numSubs
protected int numSubs
- limit the number of Substitutions
rutil
protected RegExpUtil rutil
debug
protected boolean debug
RegExpSubstFilter
public RegExpSubstFilter()
init
public void init(ConfigNode config,
JacsonRegistry registry)
throws JacsonConfigException
- Specified by:
init
in interface JacsonRegistrable
- Throws:
JacsonConfigException
accept
public boolean accept(ConfigNode node)
- Specified by:
accept
in interface ConfigVerify.Acceptor
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
- Throws:
JacsonException
Copyleft 2002 spieleck.de.