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

Constructor Index

 o WordFile()
Constructor for WordFile Initialises the filetype to "unknown".
 o WordFile(int, String)
Constructor for WordFile

Method Index

 o readWord()
reads the next word from the file

Constructors

 o WordFile
 public WordFile()
Constructor for WordFile Initialises the filetype to "unknown".

 o 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

Methods

 o 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