SourceJammer 1.3.0 November 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

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.


Constructor Summary
BufferedLineReader(java.io.Reader reader)
           
 
Method Summary
 java.io.Reader getUnderlyingReader()
           
 boolean isExhausted()
           
static void main(java.lang.String[] args)
           
 java.lang.String readLine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedLineReader

public BufferedLineReader(java.io.Reader reader)
Method Detail

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)

SourceJammer 1.3.0 November 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan