org.apache.lucene.search.spell

Class PlainTextDictionary

Implemented Interfaces:
Dictionary

public class PlainTextDictionary
extends Object
implements Dictionary

Dictionary represented by a file text.

Format allowed: 1 word per line:
word1
word2
word3

Author:
Nicolas Maisonneuve

Constructor Summary

PlainTextDictionary(File file)
PlainTextDictionary(InputStream dictFile)

Method Summary

Iterator
getWordsIterator()
Return all words present in the dictionary

Constructor Details

PlainTextDictionary

public PlainTextDictionary(File file)
            throws FileNotFoundException

PlainTextDictionary

public PlainTextDictionary(InputStream dictFile)

Method Details

getWordsIterator

public Iterator getWordsIterator()
Return all words present in the dictionary
Specified by:
getWordsIterator in interface Dictionary
Returns:
Iterator

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.