|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.swabunga.spell.event.AbstractWordTokenizer
com.swabunga.spell.event.FileWordTokenizer
public class FileWordTokenizer
This class tokenizes a input file.
Any takers to do this efficiently?? doesn't need to replace any words to start with. I need this to get an idea of how quick the spell checker is.
Field Summary |
---|
Fields inherited from class com.swabunga.spell.event.AbstractWordTokenizer |
---|
currentWord, finder, sentenceIterator, wordCount |
Constructor Summary | |
---|---|
FileWordTokenizer(java.io.File inputFile)
Creates a new FileWordTokenizer object. |
|
FileWordTokenizer(java.io.File inputFile,
WordFinder finder)
Creates a new FileWordTokenizer object and associate a WordFinder to it's processing. |
Method Summary | |
---|---|
void |
replaceWord(java.lang.String s)
Replaces the current word token |
Methods inherited from class com.swabunga.spell.event.AbstractWordTokenizer |
---|
getContext, getCurrentWordCount, getCurrentWordEnd, getCurrentWordPosition, hasMoreWords, isNewSentence, nextWord |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileWordTokenizer(java.io.File inputFile)
inputFile
- the file to work uponpublic FileWordTokenizer(java.io.File inputFile, WordFinder finder)
inputFile
- the file to word upon.finder
- the specialize processing for words.Method Detail |
---|
public void replaceWord(java.lang.String s)
replaceWord
in interface WordTokenizer
replaceWord
in class AbstractWordTokenizer
s
- the new string
WordNotFoundException
- current word not yet set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |