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 words present in the dictionary
- getWordsIterator in interface Dictionary
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.