com.octo.captcha.component.word.wordgenerator
Interface WordGenerator

All Known Implementing Classes:
ComposeDictionaryWordGenerator, DictionaryWordGenerator, DummyWordGenerator, RandomWordGenerator

public interface WordGenerator

This interface defines methods to retrieve random words

.


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
 

Method Detail

getWord

java.lang.String getWord(java.lang.Integer length)
Return a word of length between min and max length

Returns:
a String of length between min and max length

getWord

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

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.