Class Execution.OutputListener

  • Enclosing class:
    Execution

    public abstract static class Execution.OutputListener
    extends java.lang.Object
    Reports output received from an external process.
    • 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 of stdoutWritten(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 of stdoutWritten(char) when a complete line of text has been written to standard out by the external process.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OutputListener

        public OutputListener()
    • Method Detail

      • stdoutWritten

        public abstract void stdoutWritten​(java.lang.String output)
        Called by the default implementation of stdoutWritten(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 of stdoutWritten(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).