de.spieleck.app.jacson.filter
Class ReplaceFilter
java.lang.Object
de.spieleck.app.jacson.PluginBase
de.spieleck.app.jacson.filter.FilterBase
de.spieleck.app.jacson.filter.ReplaceFilter
- All Implemented Interfaces:
- ConfigVerify.Acceptor, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately
- public class ReplaceFilter
- extends FilterBase
- implements ConfigVerify.Acceptor
Filter that converts chunks to all uppercase or all lowercase.
Use like
abc
edf
to achieve a mapping caba -> fede
- Author:
- fsn
Field Summary |
protected java.lang.String |
neu
|
static java.lang.String |
NEW_NODE
|
protected java.lang.String |
old
|
static java.lang.String |
OLD_NODE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OLD_NODE
public static final java.lang.String OLD_NODE
- See Also:
- Constant Field Values
NEW_NODE
public static final java.lang.String NEW_NODE
- See Also:
- Constant Field Values
old
protected java.lang.String old
neu
protected java.lang.String neu
ReplaceFilter
public ReplaceFilter()
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.