Class PassThrough

    • Constructor Detail

      • PassThrough

        public PassThrough()
    • Method Detail

      • generates

        public 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
      • doFormatOutput

        protected void doFormatOutput​(ExternalCommand command,
                                      boolean stdout,
                                      boolean blocking,
                                      String output)
        Formats the output received from the command. Feeds the formatted data back into the ExternalCommand instance.
        Specified by:
        doFormatOutput in class AbstractOutputFormatter
        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