Class ChineseCaptcha


public class ChineseCaptcha extends ChineseCaptchaAbstract
中文验证码
Author:
zuihou
  • Constructor Details

    • ChineseCaptcha

      public ChineseCaptcha()
    • ChineseCaptcha

      public ChineseCaptcha(int width, int height)
    • ChineseCaptcha

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

      public ChineseCaptcha(int width, int height, int len, Font font)
  • Method Details

    • out

      public boolean out(OutputStream out)
      生成验证码
      Specified by:
      out in class Captcha
      Parameters:
      out - 输出流
      Returns:
      是否成功
    • toBase64

      public String toBase64()
      Description copied from class: Captcha
      输出base64编码
      Specified by:
      toBase64 in class Captcha
      Returns:
      base64编码字符串
    • getContentType

      public String getContentType()
      Description copied from class: Captcha
      获取图片类型
      Specified by:
      getContentType in class Captcha
      Returns:
      图片格式,MIME类型