public class OutputLineReader
extends java.lang.Object
| Constructor and Description |
|---|
OutputLineReader(java.lang.String text)
Creates a new
OutputLineReader. |
| Modifier and Type | Method and Description |
|---|---|
int |
getLineCount() |
boolean |
hasNextLine() |
java.lang.String |
peek(int lineToSkipCount)
Reads the text of one the line at the given position, without moving the line pointer.
|
void |
pushBack() |
java.lang.String |
readLine()
Reads the next line of text, moving the line pointer to the next one.
|
void |
skipNextLine() |
public OutputLineReader(@NonNull
java.lang.String text)
OutputLineReader.text - the text to read.public int getLineCount()
@Nullable public java.lang.String readLine()
null if we reached the end of the text.@Nullable public java.lang.String peek(int lineToSkipCount)
lineToSkipCount - the number of lines to skip from the line pointer.null if the specified position is greater than the end of the text.public boolean hasNextLine()
public void skipNextLine()
public void pushBack()