com.octo.captcha.component.word.wordgenerator
Class DummyWordGenerator
java.lang.Object
com.octo.captcha.component.word.wordgenerator.DummyWordGenerator
- All Implemented Interfaces:
- WordGenerator
public class DummyWordGenerator
- extends java.lang.Object
- implements WordGenerator
Description: dummy word generator contructed with a String returning the same string, with right length
Method Summary |
java.lang.String |
getWord(java.lang.Integer length)
Return a word of length between min and max length |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyWordGenerator
public DummyWordGenerator(java.lang.String word)
getWord
public java.lang.String getWord(java.lang.Integer length)
- Return a word of length between min and max length
- Specified by:
getWord
in interface WordGenerator
- Returns:
- a String of length between min and max length
getWord
public 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
- Specified by:
getWord
in interface WordGenerator
- Parameters:
length
- the word length
- Returns:
- a String of length between min and max length according to the given locale
Copyright 2003-2009 JCaptcha. All Rights Reserved.