ByLineReaderSourcepublic interface ByLineSource
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
close the source.
|
int |
getLineNumber() |
getLineNumber.
|
java.lang.String |
getName() |
getName.
|
java.lang.String |
getNextLine() |
getNextLine.
|
void |
unget(java.lang.String s) |
unget.
|
void |
ungetLine() |
ungetLine.
|
java.lang.String getNextLine()
throws ParseException
getNextLine.
null if we reached the end.ParseException - on I/O errorjava.lang.String getName()
getName.
int getLineNumber()
getLineNumber.
void ungetLine()
ungetLine.
This should throw a java.lang.IllegalStateException if called more than one time without calling getNextLine().void unget(java.lang.String s)
unget.
s - some text to push back to the parser.
This should throw a java.lang.IllegalStateException if called more than
one time without calling getNextLine().void close()