public class PlainTextDictionary extends Object implements Dictionary
Constructor and Description |
---|
PlainTextDictionary(File file) |
PlainTextDictionary(InputStream dictFile) |
PlainTextDictionary(Reader reader)
Creates a dictionary based on a reader.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.util.BytesRefIterator |
getWordsIterator()
Return all words present in the dictionary
|
public PlainTextDictionary(File file) throws FileNotFoundException
FileNotFoundException
public PlainTextDictionary(InputStream dictFile)
public PlainTextDictionary(Reader reader)
public org.apache.lucene.util.BytesRefIterator getWordsIterator() throws IOException
Dictionary
getWordsIterator
in interface Dictionary
IOException