org.apache.lucene.search.spell
Class PlainTextDictionary

java.lang.Object
  extended byorg.apache.lucene.search.spell.PlainTextDictionary
All 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 the words present in the dictionnary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextDictionary

public PlainTextDictionary(File file)
                    throws FileNotFoundException

PlainTextDictionary

public PlainTextDictionary(InputStream dictFile)
Method Detail

getWordsIterator

public Iterator getWordsIterator()
Description copied from interface: Dictionary
return all the words present in the dictionnary

Specified by:
getWordsIterator in interface Dictionary
Returns:
Iterator


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