Interface CommandLineToolLogContent


  • public interface CommandLineToolLogContent
    A representation of the log content from a command line tool execution. The log content can be manipulated according to the consumer's need.
    Since:
    0.4
    • Method Detail

      • of

        static CommandLineToolLogContent of​(java.lang.String content)
        Creates an log content of the specified string.
        Parameters:
        content - the raw content of the log content
        Returns:
        an CommandLineToolLogContent instance representing the specified content, never null.
        Since:
        0.5
      • getAsString

        java.lang.String getAsString()
        Returns the log content as a string.
        Returns:
        a String representation of the log content.
      • withNormalizedEndOfLine

        CommandLineToolLogContent withNormalizedEndOfLine()
        Returns this content formatted using a new line char to separate lines.
        Returns:
        a new CommandLineToolLogContent instance using a new line char to separate lines, never null.
        Since:
        0.5
      • withAnsiControlCharactersInterpreted

        CommandLineToolLogContent withAnsiControlCharactersInterpreted()
        Interprets a the ANSI control characters to produce plain text.
        Returns:
        a new CommandLineToolLogContent instance with all ANSI control characters interpreted, never null.
        Since:
        0.5
      • getLines

        java.util.List<java.lang.String> getLines()
        Returns this content separated into lines. The line does not include the line separator.
        Returns:
        the lines of the content, never null.
        Since:
        0.5