com.octo.captcha.component.word
Class FileDictionary

java.lang.Object
  extended by 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


Constructor Summary
FileDictionary(java.lang.String bundle)
           
 
Method Summary
protected  SizeSortedWordList generateWordList(java.util.Locale locale, java.util.ResourceBundle bundle)
           
 SizeSortedWordList getWordList()
           
 SizeSortedWordList getWordList(java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDictionary

public FileDictionary(java.lang.String bundle)
Method Detail

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.