Jacson

de.spieleck.app.jacson.filter
Class UniqFilter

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.UniqFilter
All Implemented Interfaces:
ConfigVerify.Acceptor, FilterNames, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately

public class UniqFilter
extends ConstFilter

Filter out chunks which equal a direct preceding one. (Or with inverse flag, let only through chunks which equal the preceeding).

These are either omitted or the only one delivered (with inverse). This somewhat resembles the uniq UNIX-Tool.

Author:
fsn

Field Summary
protected  java.lang.String preChunk
          The remembered last Chunk.
 
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
UniqFilter()
           
 
Method Summary
 void putChunk(java.lang.String chunk)
          Feed a single chunk into this filter
 
Methods inherited from class de.spieleck.app.jacson.filter.ConstFilter
accept, init, 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

preChunk

protected java.lang.String preChunk
The remembered last Chunk.

Constructor Detail

UniqFilter

public UniqFilter()
Method Detail

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.