com.swabunga.spell.event
Class FileWordTokenizer

java.lang.Object
  |
  +--com.swabunga.spell.event.AbstractWordTokenizer
        |
        +--com.swabunga.spell.event.FileWordTokenizer
All Implemented Interfaces:
WordTokenizer

public class FileWordTokenizer
extends AbstractWordTokenizer

This class tokenizes a input file.

Any takers to do this efficiently?? Doesnt need to replace any words to start with. I need this to get an idea of how quick the spell checker is.


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)
           
 
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

FileWordTokenizer

public FileWordTokenizer(java.io.File inputFile)
Creates a new FileWordTokenizer object.
Parameters:
inputFile -  

FileWordTokenizer

public FileWordTokenizer(java.io.File inputFile,
                         WordFinder finder)
Method Detail

replaceWord

public void replaceWord(java.lang.String s)
Description copied from class: AbstractWordTokenizer
Replaces the current word token
Overrides:
replaceWord in class AbstractWordTokenizer
Throws:
WordNotFoundException - current word not yet set.