|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.util.bibtex.parser.LookAheadReader
final class LookAheadReader
This implementation now features a buffer. This is more efficient than relying on BufferedReader since BufferedReader is synchronized.
Constructor Summary | |
---|---|
LookAheadReader(Reader input)
Initializes a LookAheadReader that reads from input . |
Method Summary | |
---|---|
boolean |
eof()
Checks if the end-of-content was reached. |
int |
getColumn()
Returns the current column. |
char |
getCurrent()
Returns the current character. |
int |
getLine()
Returns the current line. |
void |
step()
Jumps to the next character. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookAheadReader(Reader input) throws IOException
LookAheadReader
that reads from input
.
input
- The reader that is used internally.
IOException
- If an error occurs while reading.Method Detail |
---|
public void step() throws IOException
IOException
- If an error occurs while reading.public char getCurrent()
public boolean eof()
true
, if the end-of-content was reached; otherwise false
.public int getLine()
public int getColumn()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |