public class PlainTextDictionary extends Object implements Dictionary
Format allowed: 1 word per line:
word1
word2
word3
Constructor and Description |
---|
PlainTextDictionary(InputStream dictFile)
Creates a dictionary based on an inputstream.
|
PlainTextDictionary(Path path)
Creates a dictionary based on a Path.
|
PlainTextDictionary(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(Path path) throws IOException
NOTE: content is treated as UTF-8
IOException
public PlainTextDictionary(InputStream dictFile)
NOTE: content is treated as UTF-8
public PlainTextDictionary(Reader reader)
public InputIterator getEntryIterator() throws IOException
Dictionary
getEntryIterator
in interface Dictionary
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.