|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.util.file.LineReader
public class LineReader
Simple line-by-line file reader, with the ability to push back lines.
| Constructor Summary | |
|---|---|
LineReader(File file)
|
|
LineReader(String filename)
|
|
| Method Summary | |
|---|---|
void |
close()
Clsoes the underlying stream. |
void |
pushBack(String line)
Push back a line. |
String |
readLine()
Returns the line, not including terminating characters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineReader(File file)
throws FileNotFoundException
FileNotFoundException
public LineReader(String filename)
throws FileNotFoundException
FileNotFoundException| Method Detail |
|---|
public String readLine()
throws IOException
IOExceptionpublic void pushBack(String line)
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||