Jacson

de.spieleck.app.jacson.filter
Class StartsWithFilter

java.lang.Object
  extended byde.spieleck.app.jacson.PluginBase
      extended byde.spieleck.app.jacson.filter.FilterBase
          extended byde.spieleck.app.jacson.filter.ConstFilter
              extended byde.spieleck.app.jacson.filter.StartsWithFilter
All Implemented Interfaces:
ConfigVerify.Acceptor, FilterNames, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately

public class StartsWithFilter
extends ConstFilter

Filter which lets through only chunks which start (or start not) with a certain string.

Author:
fsn

Field Summary
static java.lang.String START_NODE
           
protected  java.lang.String strt
          The string we match against
 
Fields inherited from class de.spieleck.app.jacson.filter.ConstFilter
inverse
 
Fields inherited from class de.spieleck.app.jacson.filter.FilterBase
drain
 
Fields inherited from interface de.spieleck.app.jacson.filter.FilterNames
COUNT_NODE, INVERSE_NODE
 
Constructor Summary
StartsWithFilter()
           
 
Method Summary
 boolean accept(ConfigNode node)
           
 void init(ConfigNode config, JacsonRegistry registry)
           
 void putChunk(java.lang.String chunk)
          Feed a single chunk into this filter
 
Methods inherited from class de.spieleck.app.jacson.filter.ConstFilter
summary
 
Methods inherited from class de.spieleck.app.jacson.filter.FilterBase
setDrain
 
Methods inherited from class de.spieleck.app.jacson.PluginBase
getRegReport, getRegState, registerReport, registerState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.spieleck.app.jacson.JacsonStately
registerState
 
Methods inherited from interface de.spieleck.app.jacson.JacsonReporting
registerReport
 

Field Detail

START_NODE

public static final java.lang.String START_NODE
See Also:
Constant Field Values

strt

protected java.lang.String strt
The string we match against

Constructor Detail

StartsWithFilter

public StartsWithFilter()
Method Detail

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

Spieleck

Copyleft 2002 spieleck.de.