public interface ByLineSource
Modifier and Type | Method and Description |
---|---|
void |
close()
close the source.
|
int |
getLineNumber()
getLineNumber.
|
String |
getName()
getName.
|
String |
getNextLine()
getNextLine.
|
void |
unget(String s)
unget.
|
void |
ungetLine()
ungetLine.
|
String getNextLine() throws ParseException
getNextLine.
null
if we reached the end.ParseException
- on I/O errorint getLineNumber()
getLineNumber.
void ungetLine()
ungetLine.
This should throw a java.lang.IllegalStateException if called more than one time without calling getNextLine().void unget(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()
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.