All Packages Class Hierarchy This Package Previous Next Index
Class java.lancs.WordFile
java.lang.Object
|
+----java.lancs.BasicFileIo
|
+----java.lancs.WordFile
- public class WordFile
- extends BasicFileIo
-
WordFile()
- Constructor for WordFile
Initialises the filetype to "unknown".
-
WordFile(int, String)
- Constructor for WordFile
-
readWord()
- reads the next word from the file
WordFile
public WordFile()
- Constructor for WordFile
Initialises the filetype to "unknown".
WordFile
public WordFile(int t,
String name) throws IOException
- Constructor for WordFile
- Parameters:
- t - The filetype - either INPUT or OUPUT
- name - The filename as a string
readWord
public String readWord() throws IOException
- reads the next word from the file
- Returns:
- the next word (whitespace-separated) from the file, or null
All Packages Class Hierarchy This Package Previous Next Index