org.sourcejammer.util
Class BufferedLineReader
java.lang.Object
|
+--org.sourcejammer.util.BufferedLineReader
- public class BufferedLineReader
- extends java.lang.Object
This class iterates through the characters in a Reader object one line at
at time. It might seem like this is the same as the function of
java.io.BufferedReader, and in fact it is. But BufferedReader has a bug that
causes it to drop the last line in a text file if that file contains only
an EOL marker and nothing else. This class avoids this bug.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedLineReader
public BufferedLineReader(java.io.Reader reader)
isExhausted
public boolean isExhausted()
readLine
public java.lang.String readLine()
throws java.io.IOException
getUnderlyingReader
public java.io.Reader getUnderlyingReader()
main
public static void main(java.lang.String[] args)