public class PlainTextDictionary extends java.lang.Object implements Dictionary
Format allowed: 1 word per line:
word1
word2
word3
| Constructor and Description |
|---|
PlainTextDictionary(java.io.InputStream dictFile)
Creates a dictionary based on an inputstream.
|
PlainTextDictionary(java.nio.file.Path path)
Creates a dictionary based on a Path.
|
PlainTextDictionary(java.io.Reader reader)
Creates a dictionary based on a reader.
|
| Modifier and Type | Method and Description |
|---|---|
InputIterator |
getEntryIterator()
Returns an iterator over all the entries
|
public PlainTextDictionary(java.nio.file.Path path)
throws java.io.IOException
NOTE: content is treated as UTF-8
java.io.IOExceptionpublic PlainTextDictionary(java.io.InputStream dictFile)
NOTE: content is treated as UTF-8
public PlainTextDictionary(java.io.Reader reader)
public InputIterator getEntryIterator() throws java.io.IOException
DictionarygetEntryIterator in interface Dictionaryjava.io.IOExceptionData In Motion GmbH all rights reserved