|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
java.io.BufferedReader
TextDatabase.WordReader
public class WordReader
The WordReader class reads words from a file
Field Summary | |
---|---|
static int |
CapitalA
Holds the capital A character |
static int |
CapitalToSmallDistance
Holds the distance betweeen small and capital characters |
static int |
CapitalZ
Holds the capital Z character |
static int |
CarriageReturn
Holds the carriage return character |
static int |
EndOfFile
Holds the End Of File character |
static int |
LineFeed
Holds the linefeed character |
static int |
SmallA
Holds the small A character |
static int |
SmallZ
Holds the small Z character |
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
WordReader(java.lang.String FileName)
Initializes the WordReader |
Method Summary | |
---|---|
java.lang.String |
ReadWord()
Reads a word by reading character after character, converting it to lower case. |
Methods inherited from class java.io.BufferedReader |
---|
close, mark, markSupported, read, read, readLine, ready, reset, skip |
Methods inherited from class java.io.Reader |
---|
read, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LineFeed
public static final int CarriageReturn
public static final int CapitalA
public static final int CapitalZ
public static final int SmallA
public static final int SmallZ
public static final int CapitalToSmallDistance
public static final int EndOfFile
Constructor Detail |
---|
public WordReader(java.lang.String FileName) throws java.io.FileNotFoundException
java.io.FileNotFoundException
Method Detail |
---|
public java.lang.String ReadWord() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |