|
PageMixer API - 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jp.ne.dti.lares.foozy.pagemixer.mixer.Filter | +--jp.ne.dti.lares.foozy.pagemixer.mixer.TrimFilter
Template to trim whole token stream.
Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter |
Filter.Factory |
Constructor Summary | |
TrimFilter()
Create filter to trim whole sequence. |
Method Summary | |
void |
consume(ConsumerContext context,
Token token)
Consume token with specified context. |
void |
flush(ConsumerContext context)
Finalize with specified context. |
protected boolean |
shouldTrim(ConsumerContext context)
Decide whether token stream should be trimmed or not. |
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 |
public TrimFilter()
Method Detail |
protected boolean shouldTrim(ConsumerContext context)
You must override this method, if you want control trimming decision at execution time.
context
- context processing depends onpublic void consume(ConsumerContext context, Token token)
Filter
consume
in class Filter
jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
context
- on which consuming processing dependstoken
- to be processedMixingIOException
- IOException is thrownpublic void flush(ConsumerContext context)
Filter
This method indicate end of token stream, in other word, works like "consume(context, EOF)".
Implementation class should clear internal status on completion of invocation.
flush
in class Filter
jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
context
- on which consuming processing depends onMixingIOException
- IOException is thrown
|
PageMixer API - 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |