com.swabunga.spell.engine
public class SpellDictionaryCachedDichoDisk extends SpellDictionaryDichoDisk
SpellDictionary this one is based on Damien Guillaume's
Diskbased dictionary but adds a cache to try to improve abit on performance.
Version: 0.01
| Field Summary | |
|---|---|
| static int | codes |
| static int | hits |
| static String | JAZZY_DIR |
| static String | PRE_CACHE_FILE_EXT |
| Constructor Summary | |
|---|---|
| SpellDictionaryCachedDichoDisk(File wordList)
Dictionary Convienence Constructor. | |
| SpellDictionaryCachedDichoDisk(File wordList, String encoding)
Dictionary Convienence Constructor. | |
| SpellDictionaryCachedDichoDisk(File wordList, File phonetic)
Dictionary constructor that uses an aspell phonetic file to
build the transformation table. | |
| SpellDictionaryCachedDichoDisk(File wordList, File phonetic, String encoding)
Dictionary constructor that uses an aspell phonetic file to
build the transformation table. | |
| Method Summary | |
|---|---|
| void | addWord(String word)
Add a word permanantly to the dictionary (and the dictionary file).
|
| void | clearCache()
Clears the cache. |
| List | getWords(String code)
Returns a list of strings (words) for the code. |
| void | saveCache()
Saves the current cache to file. |