|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ft.FTDictionary
A class for FT dictionary. For example:
dir = new FTDictionary();
File file = new File("dictionary_file.zip");
dir.loadDictionary(file);
| Constructor Summary | |
FTDictionary()
Create and initialize new FT dictionary. |
|
| Method Summary | |
void |
addWord(java.lang.String word)
Add word to dictionary. |
FTIterator |
iterator()
Returns an iterator over the elements in this collection. |
void |
loadDictionary(java.io.File file)
Loads new dictionary file. |
java.lang.String |
searchFullWord(int[] keys)
Search whole word that matches whole word. |
void |
sort()
Sort dictionary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FTDictionary()
| Method Detail |
public void loadDictionary(java.io.File file)
throws java.io.FileNotFoundException
file - File to be loaded.
java.io.FileNotFoundException - if file could not be opened.public FTIterator iterator()
public java.lang.String searchFullWord(int[] keys)
keys - Array of keys. For example {4,3,5,5,6}
could return word "Hello" (of course depending on used dictionary).
null if word is not found.public void addWord(java.lang.String word)
word - Word to be added to dictionary.public void sort()
loadDictionary(File) after loading.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||