|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmw.tzap.AbstractFilter
com.jmw.tzap.IteratingFilter
public abstract class IteratingFilter
Base class for simple filters, runs all FilterFiles through the filter one at a time.
FilterFile| Field Summary |
|---|
| Fields inherited from class com.jmw.tzap.AbstractFilter |
|---|
encoding, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, task |
| Constructor Summary | |
|---|---|
IteratingFilter()
constructor |
|
| Method Summary | |
|---|---|
abstract java.lang.StringBuffer |
doFilter(java.lang.StringBuffer sb,
java.lang.String fileName)
Does the actual filtering. |
FilterFile[] |
execute(FilterFile[] files)
Processes all FilterFiles that this filter is supposed to filter one at a time. |
void |
load()
Does any initilaztion of the filter before it can be used. |
void |
unload()
Does any clean up after the filter has been finished. |
| Methods inherited from class com.jmw.tzap.AbstractFilter |
|---|
getName, log, log, setEncoding, setTask, validateParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IteratingFilter()
| Method Detail |
|---|
public void load()
AbstractFilter
load in class AbstractFilterpublic void unload()
AbstractFilter
unload in class AbstractFilter
public abstract java.lang.StringBuffer doFilter(java.lang.StringBuffer sb,
java.lang.String fileName)
sb - the file to be filtered as a StringBufferfileName - the name that this file is called on disk
public FilterFile[] execute(FilterFile[] files)
throws java.lang.Exception
execute in class AbstractFilterfiles - the FilterFiles that are to be filtered
java.lang.Exception - if something goes wrong during filtering
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||