Dictionary
public class PlainTextDictionary extends Object implements Dictionary
Constructor | Description |
---|---|
PlainTextDictionary(File file) |
|
PlainTextDictionary(InputStream dictFile) |
|
PlainTextDictionary(Reader reader) |
Creates a dictionary based on a reader.
|
Modifier and Type | Method | Description |
---|---|---|
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 BytesRefIterator getWordsIterator() throws IOException
Dictionary
getWordsIterator
in interface Dictionary
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.