|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.ide.common.blame.parser.util.OutputLineReader
public class OutputLineReader
Reads a compiler's output line-by-line.
Constructor Summary | |
---|---|
OutputLineReader(java.lang.String text)
Creates a new OutputLineReader . |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputLineReader(@NonNull java.lang.String text)
OutputLineReader
.
text
- the text to read.Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |