FileDocCategorySizeDatePackage
PlainTextDictionary.javaAPI DocApache Lucene 2.1.02122Wed Feb 14 10:46:24 GMT 2007org.apache.lucene.search.spell

PlainTextDictionary

public class PlainTextDictionary extends Object implements Dictionary
Dictionary represented by a file text.

Format allowed: 1 word per line:
word1
word2
word3

author
Nicolas Maisonneuve

Fields Summary
private BufferedReader
in
private String
line
private boolean
hasNextCalled
Constructors Summary
public PlainTextDictionary(File file)

    in = new BufferedReader(new FileReader(file));
  
public PlainTextDictionary(InputStream dictFile)

    in = new BufferedReader(new InputStreamReader(dictFile));
  
Methods Summary
public java.util.IteratorgetWordsIterator()

    return new fileIterator();