|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.filePiper.gui.GuiPipelineEnvironment
public class GuiPipelineEnvironment
| Constructor Summary | |
|---|---|
GuiPipelineEnvironment(Pipeline processPipeline,
PiperMainPanel mainPanel)
|
|
| Method Summary | |
|---|---|
void |
abortProcessing()
Tell this environment that the current file processing should be aborted. |
boolean |
canOverwriteFile(File existingFile)
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. |
File |
getCurrentInputFile()
|
File |
getCurrentOutputFile()
|
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. |
void |
startUpdate()
|
void |
stopUpdate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GuiPipelineEnvironment(Pipeline processPipeline,
PiperMainPanel mainPanel)
| Method Detail |
|---|
public void startUpdate()
public void stopUpdate()
public void startProcessing()
PipelineEnvironment
startProcessing in interface PipelineEnvironmentpublic void abortProcessing()
PipelineEnvironmentshouldContinue() must return false.
abortProcessing in interface PipelineEnvironmentpublic void finished(Exception e)
PipelineEnvironment
finished in interface PipelineEnvironmente - if not null, it means that the processing was stopped by this exception.public File getCurrentInputFile()
public File getCurrentOutputFile()
public void outputtingToFile(File dest)
PipelineEnvironment
outputtingToFile in interface PipelineEnvironmentpublic void scanningDirectory(File dir)
PipelineEnvironment
scanningDirectory in interface PipelineEnvironmentpublic void processInputFile(File src)
PipelineEnvironment
processInputFile in interface PipelineEnvironmentpublic boolean shouldContinue()
PipelineEnvironment
shouldContinue in interface PipelineEnvironmentpublic boolean canOverwriteFile(File existingFile)
PipelineEnvironment
canOverwriteFile in interface PipelineEnvironmentexistingFile - the existing file that is about to be overwritten.
public void fileSkipped(File dest)
PipelineEnvironment
fileSkipped in interface PipelineEnvironmentpublic OutputStream getConsoleStream()
PipelineEnvironment
getConsoleStream in interface PipelineEnvironmentpublic boolean isRunning()
isRunning in interface PipelineEnvironmentpublic boolean isAborted()
isAborted in interface PipelineEnvironmentpublic boolean isErrored()
isErrored in interface PipelineEnvironment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||