|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.filePiper.processors.ListFilesProcessor
public class ListFilesProcessor
Processor listing the name of the input files.
| Field Summary |
|---|
| Fields inherited from interface net.sf.filePiper.model.FileProcessor |
|---|
MANY, NONE, ONE |
| Constructor Summary | |
|---|---|
ListFilesProcessor()
|
|
| Method Summary | |
|---|---|
void |
endBatch(FileProcessorEnvironment env)
Notification that the current batch is finished. |
net.sf.sfac.gui.editor.ObjectEditor |
getEditor()
Get a GUI editor for this object. |
int |
getOutputCardinality(int inputCardinality)
Get the number of output streams generated for the given number of input streams. |
String |
getProcessorName()
|
String |
getStatusMessage()
Get the status of this processor to display in the status bar of the GUI during file processing. |
void |
init(net.sf.sfac.setting.Settings settgns)
Initialize this file processor just after instantiation (called only once). |
void |
process(InputStream is,
InputFileInfo info,
FileProcessorEnvironment env)
Request to process the given input stream. |
void |
startBatch(FileProcessorEnvironment env)
Notification that the processing of a batch of file is starting. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListFilesProcessor()
| Method Detail |
|---|
public String getProcessorName()
getProcessorName in interface FileProcessorpublic void init(net.sf.sfac.setting.Settings settgns)
FileProcessor
init in interface FileProcessorsettgns - Settings for this FileProcessor instance.
public void startBatch(FileProcessorEnvironment env)
throws IOException
FileProcessor
startBatch in interface FileProcessorIOException
public void process(InputStream is,
InputFileInfo info,
FileProcessorEnvironment env)
throws IOException
FileProcessor
process in interface FileProcessoris - the InputStream to processinfo - Information about the input file to processenv - object used by this FileProcessor to interact with its environment.
IOException - if something goes wrong.
public void endBatch(FileProcessorEnvironment env)
throws IOException
FileProcessor
endBatch in interface FileProcessorIOExceptionpublic String getStatusMessage()
FileProcessorWarning: this method is called in a different Thread from the processing Thread (the Thread calling the process(..) method). It is usually called from the swing EventDispatchThread. So, be aware of possible threading synchronization problems while accessing the instance variables of your class.
getStatusMessage in interface FileProcessorpublic int getOutputCardinality(int inputCardinality)
FileProcessor
getOutputCardinality in interface FileProcessorinputCardinality - ONE or MANY.public net.sf.sfac.gui.editor.ObjectEditor getEditor()
FileProcessor
getEditor in interface FileProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||