| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.search.spell.PlainTextDictionary
public class PlainTextDictionary
Dictionary represented by a text file.
Format allowed: 1 word per line:
| Constructor Summary | |
|---|---|
PlainTextDictionary(File file)
Creates a dictionary based on a File.  | 
|
PlainTextDictionary(InputStream dictFile)
Creates a dictionary based on an inputstream.  | 
|
PlainTextDictionary(Reader reader)
Creates a dictionary based on a reader.  | 
|
| Method Summary | |
|---|---|
 BytesRefIterator | 
getWordsIterator()
Return all words present in the dictionary  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PlainTextDictionary(File file)
                    throws IOException
NOTE: content is treated as UTF-8
IOExceptionpublic PlainTextDictionary(InputStream dictFile)
NOTE: content is treated as UTF-8
public PlainTextDictionary(Reader reader)
| Method Detail | 
|---|
public BytesRefIterator getWordsIterator()
                                  throws IOException
Dictionary
getWordsIterator in interface DictionaryIOException
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||