com.octo.captcha.component.word
Class FileDictionary
java.lang.Object
com.octo.captcha.component.word.FileDictionary
- All Implemented Interfaces:
- DictionaryReader
public class FileDictionary
- extends java.lang.Object
- implements DictionaryReader
Implementation of the DictionaryReader interface, uses a .properties file to retrieve words and return a
WordList.Constructed with the name of the properties file. It uses standard java mecanism for I18N
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDictionary
public FileDictionary(java.lang.String bundle)
getWordList
public SizeSortedWordList getWordList()
- Specified by:
getWordList
in interface DictionaryReader
getWordList
public SizeSortedWordList getWordList(java.util.Locale locale)
- Specified by:
getWordList
in interface DictionaryReader
generateWordList
protected SizeSortedWordList generateWordList(java.util.Locale locale,
java.util.ResourceBundle bundle)
Copyright 2003-2009 JCaptcha. All Rights Reserved.