java.lang.Object | +--LineReader
Simple class to read lines in from a file. To use, create a
LineReader object, then send it the readLine()
message for each line you want to read. When readLine()
returns the value null, there are no lines remaining.
| Constructor Summary | |
LineReader()
Creates a LineReader to read lines (as Strings) from a file. |
|
LineReader(java.lang.String message)
Creates a LineReader to read lines (as Strings) from a file. |
|
| Method Summary | |
void |
close()
Closes the file used by the LineReader. |
java.lang.String |
readLine()
Reads a line from the file defined by the constructor. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public LineReader()
public LineReader(java.lang.String message)
message
is displayed at the top of the dialog box.message - the message to be displayed in the dialog box.| Method Detail |
public void close()
public java.lang.String readLine()
null is returned.null if no lines remain.