Class Execution.OutputListener
- java.lang.Object
-
- com.biomatters.geneious.publicapi.utilities.Execution.OutputListener
-
- Enclosing class:
- Execution
public abstract static class Execution.OutputListener extends java.lang.Object
Reports output received from an external process.
-
-
Field Summary
Fields Modifier and Type Field Description static Execution.OutputListener
EMPTY
An OutputListener which ignores all output.
-
Constructor Summary
Constructors Constructor Description OutputListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
stderrWritten(char c)
Called by the Execution instances when single character line of text has been written to standard error by the external process.abstract void
stderrWritten(java.lang.String output)
Called by the default implementation ofstdoutWritten(char)
when a complete line of text has been written to standard error by the external process.void
stdoutWritten(char c)
Called by the Execution instances when a single character of text has been written to standard out by the external process.abstract void
stdoutWritten(java.lang.String output)
Called by the default implementation ofstdoutWritten(char)
when a complete line of text has been written to standard out by the external process.
-
-
-
Field Detail
-
EMPTY
public static final Execution.OutputListener EMPTY
An OutputListener which ignores all output.
-
-
Method Detail
-
stdoutWritten
public abstract void stdoutWritten(java.lang.String output)
Called by the default implementation ofstdoutWritten(char)
when a complete line of text has been written to standard out by the external process.- Parameters:
output
- a singleline of text written to standard out excluding the line terminator(s) (\r, \n).
-
stderrWritten
public abstract void stderrWritten(java.lang.String output)
Called by the default implementation ofstdoutWritten(char)
when a complete line of text has been written to standard error by the external process.- Parameters:
output
- a singleline of text written to standard out excluding the line terminator(s) (\r, \n).
-
stdoutWritten
public void stdoutWritten(char c)
Called by the Execution instances when a single character of text has been written to standard out by the external process.- Parameters:
c
- a singleline of text written to standard out excluding the line terminator(s) (\r, \n).
-
stderrWritten
public void stderrWritten(char c)
Called by the Execution instances when single character line of text has been written to standard error by the external process.- Parameters:
c
- a singleline of text written to standard out excluding the line terminator(s) (\r, \n).
-
-