|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.octo.captcha.component.word.wordgenerator.DictionaryWordGenerator com.octo.captcha.component.word.wordgenerator.ComposeDictionaryWordGenerator
public class ComposeDictionaryWordGenerator
This Word Generator use a Dictionnary to compose new Words from existing words.
It avoid dictionnary systematic submission, and may compose words of any length.
Constructor Summary | |
---|---|
ComposeDictionaryWordGenerator(DictionaryReader reader)
|
Method Summary | |
---|---|
java.lang.String |
getWord(java.lang.Integer length,
java.util.Locale locale)
Return a word of length between min and max length according to the given locale |
Methods inherited from class com.octo.captcha.component.word.wordgenerator.DictionaryWordGenerator |
---|
getWord |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComposeDictionaryWordGenerator(DictionaryReader reader)
Method Detail |
---|
public java.lang.String getWord(java.lang.Integer length, java.util.Locale locale)
getWord
in interface WordGenerator
getWord
in class DictionaryWordGenerator
length
- the word length
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |