|
||||||||||
| 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.filters.MergeFilter
public class MergeFilter
Filter for merging several files.
| Field Summary | |
|---|---|
protected Grouper |
grouper
The grouper used by this filter |
protected org.apache.tools.ant.util.FileNameMapper |
mapper
The mapper used by this filter |
protected int |
newcount
the number of files created |
protected Sequencer |
orderer
The orderer used by this filter |
protected int |
startcount
the number of files processed |
| Fields inherited from class com.jmw.tzap.AbstractFilter |
|---|
encoding, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, task |
| Constructor Summary | |
|---|---|
MergeFilter()
|
|
| Method Summary | |
|---|---|
void |
add(Grouper grouper)
Sets the grouper. |
void |
add(Sequencer orderer)
Sets the Sequencer. |
void |
addConfigured(org.apache.tools.ant.util.FileNameMapper mapper)
Sets the Mapper with the new style. |
void |
addConfigured(org.apache.tools.ant.types.Mapper mapper)
Sets the Mapper. |
FilterFile[] |
execute(FilterFile[] files)
Executes the filter by grouping and ordering and then merging the files. |
void |
load()
Does any initilaztion of the filter before it can be used. |
FilterFile |
merge(FilterFile[] files)
Merges an array of FilterFile's into one file. |
void |
unload()
Does any clean up after the filter has been finished. |
void |
validateParameters()
Validates filter parameters. |
| Methods inherited from class com.jmw.tzap.AbstractFilter |
|---|
getName, log, log, setEncoding, setTask |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int startcount
protected int newcount
protected Grouper grouper
protected Sequencer orderer
protected org.apache.tools.ant.util.FileNameMapper mapper
| Constructor Detail |
|---|
public MergeFilter()
| Method Detail |
|---|
public FilterFile[] execute(FilterFile[] files)
execute in class AbstractFilterfiles - an array of FilterFiles to process
public void load()
AbstractFilter
load in class AbstractFilterpublic void unload()
AbstractFilter
unload in class AbstractFilterpublic FilterFile merge(FilterFile[] files)
files - Description of the Parameter
public void add(Grouper grouper)
grouper - the grouper to be usedpublic void add(Sequencer orderer)
orderer - the orderer to be usedpublic void addConfigured(org.apache.tools.ant.types.Mapper mapper)
mapper - the orderer to be usedpublic void addConfigured(org.apache.tools.ant.util.FileNameMapper mapper)
mapper - the orderer to be used
public void validateParameters()
throws java.lang.Exception
validateParameters in class AbstractFilterjava.lang.Exception - thrown if parameters are invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||