public class CookieUserDictionary extends UserDictionary
dictFile
Constructor and Description |
---|
CookieUserDictionary(javax.servlet.http.Cookie[] cookies,
javax.servlet.http.HttpServletResponse response,
int maximumAgeInSeconds)
New
|
Modifier and Type | Method and Description |
---|---|
boolean |
addWord(java.lang.String word)
Tries to add
word to this dictionary |
boolean |
isValid()
Returns if the dictionary file is valid.
|
int |
readAll(java.util.ArrayList list)
Read the dictionary word list into
list |
getEncoding, removeWord, setEncoding
public CookieUserDictionary(javax.servlet.http.Cookie[] cookies, javax.servlet.http.HttpServletResponse response, int maximumAgeInSeconds)
public boolean addWord(java.lang.String word)
word
to this dictionaryaddWord
in class UserDictionary
word
- String containing the new wordpublic int readAll(java.util.ArrayList list)
list
readAll
in class UserDictionary
list
- the String ArrayList that the word list will be read into.public boolean isValid()
isValid
in class UserDictionary
Copyright © 2002-2016 Keyoti Inc. All Rights Reserved.