Class ProcessMonitor


  • public final class ProcessMonitor
    extends Object
    Executes a process and waits for completion, monitoring the output.
    • Method Detail

      • output

        public List<String> output()
        Returns the combined captured output.
        Returns:
        The output. Empty if capture not enabled.
      • stdOut

        public List<String> stdOut()
        Returns any captured stderr output.
        Returns:
        The output. Empty if capture not enabled.
      • stdErr

        public List<String> stdErr()
        Returns any captured stderr output.
        Returns:
        The output. Empty if capture not enabled.