| 
||||||||||
| 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.SplitFilter
public abstract class SplitFilter
Abstract filter for splitting single files into many files.
| Field Summary | |
|---|---|
protected  int | 
count
 | 
protected  java.lang.String | 
endStr
 | 
protected  int | 
initialCount
 | 
protected  int | 
totalCount
 | 
| Fields inherited from class com.jmw.tzap.AbstractFilter | 
|---|
encoding, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, task | 
| Constructor Summary | |
|---|---|
SplitFilter()
 | 
|
| Method Summary | |
|---|---|
 FilterFile[] | 
execute(FilterFile[] files)
Executes the filter by sending each file to split(). | 
 void | 
load()
Does any initilaztion of the filter before it can be used.  | 
 void | 
setCount(int i)
Sets the count number to be added to all newly created files.  | 
 void | 
setEndString(java.lang.String es)
Sets the String to be added before the 'count' number.  | 
abstract  java.util.ArrayList<FilterFile> | 
split(FilterFile file)
Splits a FilterFile into smaller ones.  | 
 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 | 
| Field Detail | 
|---|
protected int count
protected java.lang.String endStr
protected int initialCount
protected int totalCount
| Constructor Detail | 
|---|
public SplitFilter()
| Method Detail | 
|---|
public void setCount(int i)
i - the initial number.public void setEndString(java.lang.String es)
es - the endString.public void load()
AbstractFilter
load in class AbstractFilterpublic void unload()
AbstractFilter
unload in class AbstractFilterpublic FilterFile[] execute(FilterFile[] files)
split().
 It then adds all the split files to the file file array.
execute in class AbstractFilterfiles - an array of FilterFiles to process
#split(file)public abstract java.util.ArrayList<FilterFile> split(FilterFile file)
file - the FilterFile to be split
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||