public class PlainTextDictionary extends java.lang.Object implements Dictionary
Constructor and Description |
---|
PlainTextDictionary(java.io.File file) |
PlainTextDictionary(java.io.InputStream dictFile) |
PlainTextDictionary(java.io.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(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public PlainTextDictionary(java.io.InputStream dictFile)
public PlainTextDictionary(java.io.Reader reader)
public org.apache.lucene.util.BytesRefIterator getWordsIterator() throws java.io.IOException
Dictionary
getWordsIterator
in interface Dictionary
java.io.IOException
Copyright © 2000-2023 Apache Software Foundation. All Rights Reserved.