Jacson

de.spieleck.app.jacson.filter
Class ConstFilter

java.lang.Object
  extended byde.spieleck.app.jacson.PluginBase
      extended byde.spieleck.app.jacson.filter.FilterBase
          extended byde.spieleck.app.jacson.filter.ConstFilter
All Implemented Interfaces:
ConfigVerify.Acceptor, FilterNames, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately
Direct Known Subclasses:
BrokenLinkFilter, GroupingFilter, HeadFilter, JacsonStateFilter, KeyWordFilter, RegExpContainsFilter, RegExpMatchFilter, SimpleContainsFilter, SortFilter, StartsWithFilter, TrimFilter, UniqFilter, WebSessionFilter

public class ConstFilter
extends FilterBase
implements ConfigVerify.Acceptor, FilterNames

This trivial Filter, which either blocks all source input or lets it all through.

Author:
fsn

Field Summary
protected  boolean 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
ConstFilter()
           
 
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
 void summary()
          Do nothing default implementation
 
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

inverse

protected boolean inverse
Constructor Detail

ConstFilter

public ConstFilter()
Method Detail

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

summary

public void summary()
Description copied from class: PluginBase
Do nothing default implementation

Specified by:
summary in interface JacsonReporting
Overrides:
summary in class PluginBase

Spieleck

Copyleft 2002 spieleck.de.