|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.inet.jortho.FileUserDictionary
public class FileUserDictionary
This is a reference implementation of the interface UserDictionaryProvider.
It save the user dictionaries on the local disk as text files.
| Constructor Summary | |
|---|---|
FileUserDictionary()
Create a FileUserDictionary with the dictionaries in the root of the current application. |
|
FileUserDictionary(java.lang.String fileBase)
Create a FileUserDictionary with the dictionaries on a specific location. |
|
| Method Summary | |
|---|---|
void |
addWord(java.lang.String word)
Adds a new word to the current user dictionary. |
java.lang.String |
getUserWords(java.util.Locale locale)
Gets the list of user words for this locale. |
void |
setUserWords(java.lang.String wordList)
Set a completely new word list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUserDictionary()
public FileUserDictionary(java.lang.String fileBase)
fileBase - the base| Method Detail |
|---|
public void addWord(java.lang.String word)
addWord in interface UserDictionaryProviderword - the new word.public java.lang.String getUserWords(java.util.Locale locale)
getUserWords in interface UserDictionaryProviderlocale - The locale of the selected language.
public void setUserWords(java.lang.String wordList)
setUserWords in interface UserDictionaryProviderwordList - the new word list. Can be empty but not null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||