blrevcomp
Class BufferedTextInputFile
java.lang.Object
blrevcomp.BufferedTextInputFile
public class BufferedTextInputFile
- extends java.lang.Object
Types and methods for safely opening or closing
an input file for reading lines of text.
|
Field Summary |
java.io.BufferedReader |
BR
|
java.lang.String |
currentLine
|
boolean |
EOF
|
java.io.File |
F
|
java.io.FileReader |
FR
|
|
Method Summary |
char |
nextChar()
Get the next character from the BufferedReader and
place it in currentLine |
java.lang.String |
nextLine()
Get the next line of text from the BufferedReader and
place it in currentLine |
boolean |
OpenOkay(java.lang.String S)
Open file and create FileReader and BufferedReader. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
F
public java.io.File F
FR
public java.io.FileReader FR
BR
public java.io.BufferedReader BR
currentLine
public java.lang.String currentLine
EOF
public boolean EOF
BufferedTextInputFile
public BufferedTextInputFile()
OpenOkay
public boolean OpenOkay(java.lang.String S)
- Open file and create FileReader and BufferedReader.
- Parameters:
S - String containing name of file to be opened
nextChar
public char nextChar()
- Get the next character from the BufferedReader and
place it in currentLine
nextLine
public java.lang.String nextLine()
- Get the next line of text from the BufferedReader and
place it in currentLine