|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PipelineEnvironment
Interface used by the whole pipeline to interact with its environment.
It's used to:
| Method Summary | |
|---|---|
void |
abortProcessing()
Tell this environment that the current file processing should be aborted. |
boolean |
canOverwriteFile(File fil)
Check if an existing file can be overwritten by the pipe-line processing. |
void |
fileSkipped(File dest)
Notify the environment of the currently processed output file is not written to avoid overriding an existing file. |
void |
finished(Exception e)
Notify the environment that the pipe-line processing is finished. |
OutputStream |
getConsoleStream()
Get an output stream to write to the console. |
boolean |
isAborted()
|
boolean |
isErrored()
|
boolean |
isRunning()
|
void |
outputtingToFile(File dest)
Notify the environment of the currently processed output file. |
void |
processInputFile(File src)
Notify the environment of the currently processed input file. |
void |
scanningDirectory(File dir)
Notify the environment that the pipeline is scanning directory to find file to process. |
boolean |
shouldContinue()
Check if the processing should continue. |
void |
startProcessing()
Notify the environment that the pipe-line processing has started. |
| Method Detail |
|---|
void startProcessing()
void scanningDirectory(File dir)
void processInputFile(File src)
void outputtingToFile(File dest)
void fileSkipped(File dest)
void finished(Exception e)
e - if not null, it means that the processing was stopped by this exception.boolean shouldContinue()
boolean canOverwriteFile(File fil)
fil - the existing file that is about to be overwritten.
void abortProcessing()
shouldContinue() must return false.
OutputStream getConsoleStream()
boolean isRunning()
boolean isAborted()
boolean isErrored()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||