程序包 com.wf.captcha

类 GifCaptcha


public class GifCaptcha extends Captcha
Gif验证码类 Created by 王帆 on 2018-07-27 上午 10:08.
  • 构造器详细资料

    • GifCaptcha

      public GifCaptcha()
    • GifCaptcha

      public GifCaptcha(int width, int height)
    • GifCaptcha

      public GifCaptcha(int width, int height, int len)
    • GifCaptcha

      public GifCaptcha(int width, int height, int len, Font font)
  • 方法详细资料

    • out

      public boolean out(OutputStream os)
      从类复制的说明: Captcha
      验证码输出,抽象方法,由子类实现
      指定者:
      out 在类中 Captcha
      参数:
      os - 输出流
      返回:
      是否成功
    • toBase64

      public String toBase64()
      从类复制的说明: Captcha
      输出base64编码
      指定者:
      toBase64 在类中 Captcha
      返回:
      base64编码字符串
    • getContentType

      public String getContentType()
      从类复制的说明: Captcha
      获取图片类型
      指定者:
      getContentType 在类中 Captcha
      返回:
      图片格式,MIME类型