captchaservicesingleton.java

来自「一个留言板 系统平台: JSP+SQLServer 支持开通无限个数的留言」· Java 代码 · 共 30 行

JAVA
30
字号
/* * CaptchaServiceSingleton.java * * Created on 2006年7月11日, 上午10:12 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package tot.image;import com.octo.captcha.service.image.ImageCaptchaService;import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;import com.octo.captcha.engine.image.gimpy.*;import com.octo.captcha.service.captchastore.FastHashMapCaptchaStore;/** * * @author Administrator */public class CaptchaServiceSingleton {        //private static ImageCaptchaService instance = new DefaultManageableImageCaptchaService(new FastHashMapCaptchaStore(),new SimpleListImageCaptchaEngine(),180,100000,75000);    private static ImageCaptchaService instance = new DefaultManageableImageCaptchaService(new FastHashMapCaptchaStore(),new SimpleListImageByNumonlyEngine(),180,100000,75000);    public static ImageCaptchaService getInstance(){        return instance;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?