PageMixer demonstration with Servlet

pagemixer.filter
Class TextTrimFilter

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
        |
        +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceEditFilter
              |
              +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter
                    |
                    +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole
                          |
                          +--pagemixer.filter.TextTrimFilter
All Implemented Interfaces:
jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer

public class TextTrimFilter
extends jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole

Filter to trim whole sub-sequence.


Inner Class Summary
static class TextTrimFilter.Factory
          Factory for "TextTrimFilter".
 
Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter
jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Inside, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Strategy, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole
 
Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
jp.ne.dti.lares.foozy.pagemixer.mixer.Filter.Factory
 
Fields inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter
DEFAULT
 
Constructor Summary
TextTrimFilter()
           
 
Method Summary
static void main(java.lang.String[] args)
          Invoke as stand-alone application.
protected  boolean shouldTrim(jp.ne.dti.lares.foozy.pagemixer.mixer.ConsumerContext context)
           
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter.Whole
getStrategy
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter
beforeFirst, onFirst, onInside, onLast
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceEditFilter
afterLast, consume, flush
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
addCleanup, clear, connectTo, getConsumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTrimFilter

public TextTrimFilter()
Method Detail

shouldTrim

protected boolean shouldTrim(jp.ne.dti.lares.foozy.pagemixer.mixer.ConsumerContext context)
Overrides:
shouldTrim in class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceTrimFilter

main

public static void main(java.lang.String[] args)
Invoke as stand-alone application.
USAGE:java pagemixer.filter.TextTrimFilter InputFilename [Trim]

Please see description of pagemixer.filter about class path requirement to execute this class.


PageMixer demonstration with Servlet