com.jalios.jcms.search.spell
Class PlainTextDictionary
java.lang.Object
com.jalios.jcms.search.spell.PlainTextDictionary
- All Implemented Interfaces:
- Dictionary
public class PlainTextDictionary
- extends java.lang.Object
- implements Dictionary
Dictionary represented by a UTF-8 text file.
Format allowed: 1 word per line:
word1
word2
word3
- Version:
- 1.0 - $Revision: 27753 $
- Author:
- Nicolas Maisonneuve
|
Field Summary |
static java.lang.String |
REVISION
|
|
Method Summary |
java.util.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 |
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
PlainTextDictionary
public PlainTextDictionary(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
PlainTextDictionary
public PlainTextDictionary(java.io.InputStream dictFile)
getWordsIterator
public java.util.Iterator getWordsIterator()
- Description copied from interface:
Dictionary
- return all the words present in the dictionnary
- Specified by:
getWordsIterator in interface Dictionary
- Returns:
- Iterator
Copyright © 2001-2010 Jalios SA. All Rights Reserved.