public class FileUserDictionary extends java.lang.Object implements UserDictionaryProvider
UserDictionaryProvider
.
It save the user dictionaries on the local disk as text files.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
addWord(java.lang.String word)
Adds a new word to the current user dictionary.
|
java.util.Iterator<java.lang.String> |
getWords(java.util.Locale locale)
Gets the list of custom words for this locale.
|
void |
setUserWords(java.lang.String wordList)
Set a completely new word list
|
public FileUserDictionary()
public FileUserDictionary(java.lang.String fileBase)
fileBase
- the basepublic void addWord(java.lang.String word)
addWord
in interface UserDictionaryProvider
word
- the new word.public java.util.Iterator<java.lang.String> getWords(java.util.Locale locale)
getWords
in interface CustomDictionaryProvider
locale
- The locale of the selected language.public void setUserWords(java.lang.String wordList)
setUserWords
in interface UserDictionaryProvider
wordList
- the new word list. Can be empty but not null.Copyright © 2005 - 2013 i-net software. All Rights Reserved.