public interface CommandLineToolLogContent
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CommandLineToolLogContent.LineDetails |
| Modifier and Type | Method and Description |
|---|---|
CommandLineToolLogContent |
drop(int n)
Drops the first n lines.
|
static CommandLineToolLogContent |
empty()
Creates an empty log content.
|
java.lang.String |
getAsString()
Returns the log content as a string.
|
java.util.List<java.lang.String> |
getLines()
Returns this content separated into lines.
|
static CommandLineToolLogContent |
of(java.lang.String content)
Creates an log content of the specified string.
|
CommandLineToolLogContent |
visitEachLine(java.util.function.Consumer<CommandLineToolLogContent.LineDetails> visitor)
Visit each lines.
|
CommandLineToolLogContent |
withAnsiControlCharactersInterpreted()
Interprets a the ANSI control characters to produce plain text.
|
CommandLineToolLogContent |
withNormalizedEndOfLine()
Returns this content formatted using a new line char to separate lines.
|
static CommandLineToolLogContent of(java.lang.String content)
content - the raw content of the log contentCommandLineToolLogContent instance representing the specified content, never null.static CommandLineToolLogContent empty()
CommandLineToolLogContent instance, never null.java.lang.String getAsString()
String representation of the log content.CommandLineToolLogContent withNormalizedEndOfLine()
CommandLineToolLogContent instance using a new line char to separate lines, never null.CommandLineToolLogContent drop(int n)
n - the number of lines to drop from the log contentCommandLineToolLogContent instance without the first n lines, never null.CommandLineToolLogContent withAnsiControlCharactersInterpreted()
CommandLineToolLogContent instance with all ANSI control characters interpreted, never null.java.util.List<java.lang.String> getLines()
CommandLineToolLogContent visitEachLine(java.util.function.Consumer<CommandLineToolLogContent.LineDetails> visitor)
visitor - log content line visitor, must not be nullCommandLineToolLogContent instance of the result following the visit, never null.