de.spieleck.app.jacson.filter
Class GroupingFilter
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.GroupingFilter
- All Implemented Interfaces:
- ConfigVerify.Acceptor, FilterNames, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately
- public class GroupingFilter
- extends ConstFilter
GroupingFilter
Description
Filter class which concatenates the received chunks and
delivers them as one chunk as soon as a configurable split token
shows up
Parameters
Attribute |
Description |
Required |
delim |
The string separating the different tokens |
No, default is ; |
- Since:
- 0.90
- Version:
- $Id: GroupingFilter.java 35 2005-10-03 22:08:55Z pcs $
- Author:
- pcs
Field Summary |
static java.lang.String |
DELIM_DEFAULT
default value for delimiter if none is given |
static java.lang.String |
DELIM_NODE
name of config node containing the delimiter token |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DELIM_NODE
public static final java.lang.String DELIM_NODE
- name of config node containing the delimiter token
- See Also:
- Constant Field Values
DELIM_DEFAULT
public static final java.lang.String DELIM_DEFAULT
- default value for delimiter if none is given
- See Also:
- Constant Field Values
init
public void init(ConfigNode config,
JacsonRegistry registry)
throws JacsonConfigException
- initializes this object
- Specified by:
init
in interface JacsonRegistrable
- Overrides:
init
in class ConstFilter
- Parameters:
config
- a ConfigNode containing the configurationregistry
- the JacsonRegistry
- Throws:
JacsonConfigException
accept
public boolean accept(ConfigNode node)
- returns true if the given node is accepted by this object
- Specified by:
accept
in interface ConfigVerify.Acceptor
- Overrides:
accept
in class ConstFilter
- Parameters:
node
- the config node to check
- Returns:
- true if the node is accepted
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.