com.octo.captcha.engine.sound
Class ListSoundCaptchaEngine

java.lang.Object
  extended by com.octo.captcha.engine.sound.SoundCaptchaEngine
      extended by com.octo.captcha.engine.sound.ListSoundCaptchaEngine
All Implemented Interfaces:
CaptchaEngine
Direct Known Subclasses:
SimpleListSoundCaptchaEngine, SpellerSoundCaptchaEngine

public abstract class ListSoundCaptchaEngine
extends SoundCaptchaEngine

This engine is based on a java.util.List of factories. It has a default constructor. Sub class must implements the buildInitialFactories() method that should build an initial set of factories.


Field Summary
 
Fields inherited from class com.octo.captcha.engine.sound.SoundCaptchaEngine
factories, myRandom
 
Constructor Summary
ListSoundCaptchaEngine()
           
 
Method Summary
 void addFactories(SoundCaptchaFactory[] factories)
          Add an array of factories to the gimpy list
 boolean addFactory(SoundCaptchaFactory factory)
          Add a factory to the gimpy list
protected abstract  void buildInitialFactories()
          this method should be implemented as folow : First construct all the factories you want to initialize the gimpy with then call the this.addFactoriy method for each factory
 
Methods inherited from class com.octo.captcha.engine.sound.SoundCaptchaEngine
checkNotNullOrEmpty, getFactories, getNextCaptcha, getNextCaptcha, getNextSoundCaptcha, getNextSoundCaptcha, getSoundCaptchaFactory, setFactories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListSoundCaptchaEngine

public ListSoundCaptchaEngine()
Method Detail

buildInitialFactories

protected abstract void buildInitialFactories()
this method should be implemented as folow :


addFactory

public boolean addFactory(SoundCaptchaFactory factory)
Add a factory to the gimpy list

Returns:
true if added false otherwise

addFactories

public void addFactories(SoundCaptchaFactory[] factories)
Add an array of factories to the gimpy list



Copyright 2003-2009 JCaptcha. All Rights Reserved.