|
RapidSpell Web |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.keyoti.rapidSpell.UserDictionary
public class UserDictionary
Represents the UserDictionary
Field Summary | |
---|---|
java.io.File |
dictFile
The file containing the dictionary |
Constructor Summary | |
---|---|
UserDictionary()
|
|
UserDictionary(java.io.File userDictionaryFile)
Construct a UserDictionary based on the userDictionaryFile , which does not have to exist. |
|
UserDictionary(java.io.File userDictionaryFile,
int wordLimit)
Construct a UserDictionary based on the userDictionaryFile , which does not have to exist. |
Method Summary | |
---|---|
boolean |
addWord(java.lang.String word)
Tries to add word to this dictionary |
java.lang.String |
getEncoding()
Gets the encoding to use |
boolean |
isValid()
Returns if the dictionary file is valid. |
int |
readAll(java.util.ArrayList list)
Read the dictionary word list into list |
void |
setEncoding(java.lang.String v)
Sets the encoding to use |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.io.File dictFile
Constructor Detail |
---|
public UserDictionary(java.io.File userDictionaryFile)
userDictionaryFile
, which does not have to exist.
User dictionary is limited to 5,000 words
userDictionaryFile
- the file used for a user dictionary.public UserDictionary()
public UserDictionary(java.io.File userDictionaryFile, int wordLimit)
userDictionaryFile
, which does not have to exist.
listSize
- number of words user dictionary is limited to (13,000 max). If wordLimit
is <=0 it will be set to 13,000.userDictionaryFile
- the file used for a user dictionary.Method Detail |
---|
public java.lang.String getEncoding()
public void setEncoding(java.lang.String v)
public boolean isValid()
public boolean addWord(java.lang.String word)
word
to this dictionary
word
- String containing the new word
public int readAll(java.util.ArrayList list)
list
list
- the String array that the word list will be read into.
|
RapidSpell Web |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |