nl.captcha.text.producer
Class DefaultTextProducer

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

public class DefaultTextProducer
extends java.lang.Object
implements TextProducer

Produces text of a given length from a given array of characters.

Author:
James Childers

Constructor Summary
DefaultTextProducer()
           
DefaultTextProducer(int length, char[] srcChars)
           
 
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

DefaultTextProducer

public DefaultTextProducer()

DefaultTextProducer

public DefaultTextProducer(int length,
                           char[] srcChars)
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.