Class DefaultOutputConsumer
java.lang.Object
org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer
- All Implemented Interfaces:
ProcessOutputConsumer
Default implementation for process output processing.
The class would expect specific patterns (i.e. RegEx) for errors and progress messages.
Any other message (which does not respect one of these patterns) will be considered informational.
If no pattern is given in ctor, all messages are treated as informational.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultOutputConsumer(String progressPattern, ProgressMonitor pm) DefaultOutputConsumer(String progressPattern, String errorPattern, ProgressMonitor pm) DefaultOutputConsumer(String progressPattern, String errorPattern, String stepPattern, ProgressMonitor pm) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconsumeOutput(String line) Consume a line of output obtained from a tool.voidvoidsetProgressMonitor(ProgressMonitor monitor)
-
Field Details
-
error
-
-
Constructor Details
-
DefaultOutputConsumer
public DefaultOutputConsumer() -
DefaultOutputConsumer
-
DefaultOutputConsumer
-
DefaultOutputConsumer
public DefaultOutputConsumer(String progressPattern, String errorPattern, String stepPattern, ProgressMonitor pm)
-
-
Method Details
-
setProgressMonitor
-
setLogger
- Specified by:
setLoggerin interfaceProcessOutputConsumer
-
consumeOutput
Description copied from interface:ProcessOutputConsumerConsume a line of output obtained from a tool.- Specified by:
consumeOutputin interfaceProcessOutputConsumer- Parameters:
line- a line of output text.
-
getProcessOutput
- Specified by:
getProcessOutputin interfaceProcessOutputConsumer
-
close
public void close()
-