com.octo.captcha.sound.speller
Class SpellerSound

java.lang.Object
  extended by com.octo.captcha.sound.SoundCaptcha
      extended by com.octo.captcha.sound.speller.SpellerSound
All Implemented Interfaces:
Captcha, java.io.Serializable

public class SpellerSound
extends SoundCaptcha

SoundCaptcha with spelling

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.octo.captcha.sound.SoundCaptcha
challenge, hasChallengeBeenCalled, question
 
Constructor Summary
SpellerSound(java.lang.String thequestion, javax.sound.sampled.AudioInputStream thechallenge, java.lang.String theresponse)
           
 
Method Summary
 java.lang.Boolean validateResponse(java.lang.Object theresponse)
          Validation routine for the response.
 java.lang.Boolean validateResponse(java.lang.String theresponse)
           
 
Methods inherited from class com.octo.captcha.sound.SoundCaptcha
disposeChallenge, getChallenge, getQuestion, getSoundChallenge, hasGetChalengeBeenCalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpellerSound

public SpellerSound(java.lang.String thequestion,
                    javax.sound.sampled.AudioInputStream thechallenge,
                    java.lang.String theresponse)
Method Detail

validateResponse

public java.lang.Boolean validateResponse(java.lang.Object theresponse)
Description copied from interface: Captcha
Validation routine for the response.

Parameters:
theresponse - to the question concerning the chalenge
Returns:
true if the answer is correct, false otherwise.

validateResponse

public java.lang.Boolean validateResponse(java.lang.String theresponse)


Copyright 2003-2009 JCaptcha. All Rights Reserved.