nl.captcha.text.producer
Class NumbersAnswerProducer

java.lang.Object
  extended by nl.captcha.text.producer.NumbersAnswerProducer
All Implemented Interfaces:
TextProducer

public class NumbersAnswerProducer
extends java.lang.Object
implements TextProducer

TextProducer implementation that will return a series of numbers.

Author:
James Childers

Constructor Summary
NumbersAnswerProducer()
           
NumbersAnswerProducer(int length)
           
 
Method Summary
 java.lang.String getText()
          Generate a series of characters to be used as the answer for the CAPTCHA.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumbersAnswerProducer

public NumbersAnswerProducer()

NumbersAnswerProducer

public NumbersAnswerProducer(int length)
Method Detail

getText

public java.lang.String getText()
Description copied from interface: TextProducer
Generate a series of characters to be used as the answer for the CAPTCHA.

Specified by:
getText in interface TextProducer
Returns:
The answer for the CAPTCHA.


Copyright © 2010-2011 James Childers. All Rights Reserved.