Interface OutputFormatter

    • Method Detail

      • generates

        Class generates​(boolean blocking)
        Returns what output type the formatter generates.
        Parameters:
        blocking - returns the type when used on blocking mode output
        Returns:
        the type
      • formatOutput

        void formatOutput​(ExternalCommand command,
                          boolean stdout,
                          boolean blocking,
                          String output)
        Formats the output received from the command. Feeds the formatted data back into the ExternalCommand instance.
        Parameters:
        command - the external command to feed the output back into
        stdout - whether the output was from stdout or stderr
        blocking - whether the output was received via blocking or async execution
        output - the output to format