org.apache.lucene.search.spell

Class PlainTextDictionary

public class PlainTextDictionary extends Object implements Dictionary

Dictionary represented by a text file.

Format allowed: 1 word per line:
word1
word2
word3

Author: Nicolas Maisonneuve

Constructor Summary
PlainTextDictionary(File file)
PlainTextDictionary(InputStream dictFile)
protected PlainTextDictionary(Reader reader)
Create a dictionary based on a reader.
Method Summary
IteratorgetWordsIterator()

Constructor Detail

PlainTextDictionary

public PlainTextDictionary(File file)

PlainTextDictionary

public PlainTextDictionary(InputStream dictFile)

PlainTextDictionary

protected PlainTextDictionary(Reader reader)
Create a dictionary based on a reader. Used by the test case.

Method Detail

getWordsIterator

public Iterator getWordsIterator()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.