Package org.apache.lucene.search.spell
Class PlainTextDictionary
java.lang.Object
org.apache.lucene.search.spell.PlainTextDictionary
- All Implemented Interfaces:
Dictionary
Dictionary represented by a text file.
Format allowed: 1 word per line:
word1
word2
word3
-
Constructor Summary
ConstructorDescriptionPlainTextDictionary
(InputStream dictFile) Creates a dictionary based on an inputstream.PlainTextDictionary
(Reader reader) Creates a dictionary based on a reader.PlainTextDictionary
(Path path) Creates a dictionary based on a Path. -
Method Summary
Modifier and TypeMethodDescriptionReturns an iterator over all the entries
-
Constructor Details
-
PlainTextDictionary
Creates a dictionary based on a Path.NOTE: content is treated as UTF-8
- Throws:
IOException
-
PlainTextDictionary
Creates a dictionary based on an inputstream.NOTE: content is treated as UTF-8
-
PlainTextDictionary
Creates a dictionary based on a reader.
-
-
Method Details
-
getEntryIterator
Description copied from interface:Dictionary
Returns an iterator over all the entries- Specified by:
getEntryIterator
in interfaceDictionary
- Returns:
- Iterator
- Throws:
IOException
-