RapidSpell Web


com.keyoti.rapidSpell.web
Class CookieUserDictionary

java.lang.Object
  extended by com.keyoti.rapidSpell.UserDictionary
      extended by com.keyoti.rapidSpell.web.CookieUserDictionary

public class CookieUserDictionary
extends UserDictionary

Cookie based user dictionary.


Field Summary
 
Fields inherited from class com.keyoti.rapidSpell.UserDictionary
dictFile
 
Constructor Summary
CookieUserDictionary(javax.servlet.http.Cookie[] cookies, javax.servlet.http.HttpServletResponse response, int maximumAgeInSeconds)
          New
 
Method Summary
 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
 
Methods inherited from class com.keyoti.rapidSpell.UserDictionary
getEncoding, setEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieUserDictionary

public CookieUserDictionary(javax.servlet.http.Cookie[] cookies,
                            javax.servlet.http.HttpServletResponse response,
                            int maximumAgeInSeconds)
New

Method Detail

addWord

public boolean addWord(java.lang.String word)
Tries to add word to this dictionary

Overrides:
addWord in class UserDictionary
Parameters:
word - String containing the new word
Returns:
true if added successfully, false otherwise.

readAll

public int readAll(java.util.ArrayList list)
Read the dictionary word list into list

Overrides:
readAll in class UserDictionary
Parameters:
list - the String ArrayList that the word list will be read into.
Returns:
number of words in list.

isValid

public boolean isValid()
Returns if the dictionary file is valid.

Overrides:
isValid in class UserDictionary

RapidSpell Web


Copyright © 2002-2013 Keyoti Inc. All Rights Reserved.