org.apache.lucene.search.spell
Class PlainTextDictionary
- Dictionary
public class PlainTextDictionary
Dictionary represented by a file text.
Format allowed: 1 word per line:
word1
word2
word3
PlainTextDictionary
public PlainTextDictionary(File file)
throws FileNotFoundException
PlainTextDictionary
public PlainTextDictionary(InputStream dictFile)
getWordsIterator
public Iterator getWordsIterator()
return all the words present in the dictionnary
- getWordsIterator in interface Dictionary
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.