|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileProcessor
Processor of a file.
| Field Summary | |
|---|---|
static int |
MANY
|
static int |
NONE
|
static int |
ONE
|
| 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 sett)
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. |
| Field Detail |
|---|
static final int NONE
static final int ONE
static final int MANY
| Method Detail |
|---|
String getProcessorName()
void init(net.sf.sfac.setting.Settings sett)
sett - Settings for this FileProcessor instance.int getOutputCardinality(int inputCardinality)
inputCardinality - ONE or MANY.
void startBatch(FileProcessorEnvironment env)
throws IOException
env -
IOException
void process(InputStream is,
InputFileInfo info,
FileProcessorEnvironment env)
throws IOException
is - 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.
void endBatch(FileProcessorEnvironment env)
throws IOException
env -
IOExceptionnet.sf.sfac.gui.editor.ObjectEditor getEditor()
String getStatusMessage()
Warning: 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||