Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addFrame(BufferedImage) - Method in class com.wf.captcha.utils.GifEncoder
-
Adds next GIF frame.
- alpha() - Static method in class com.wf.captcha.base.Randoms
-
返回ALPHA中的随机字符
- alpha(int) - Static method in class com.wf.captcha.base.Randoms
-
返回ALPHA中第0位到第num位的随机字符
- alpha(int, int) - Static method in class com.wf.captcha.base.Randoms
-
返回ALPHA中第min位到第max位的随机字符
- ALPHA - Static variable in class com.wf.captcha.base.Randoms
-
定义验证码字符.去除了0、O、I、L等容易混淆的字母
- ALPHABIASSHIFT - Static variable in class com.wf.captcha.utils.Quant
- alphadec - Variable in class com.wf.captcha.utils.Quant
- alphaHan() - Static method in class com.wf.captcha.base.ChineseCaptchaAbstract
-
返回随机汉字
- ALPHARADBIAS - Static variable in class com.wf.captcha.utils.Quant
- ALPHARADBSHIFT - Static variable in class com.wf.captcha.utils.Quant
- alphas() - Method in class com.wf.captcha.base.ArithmeticCaptchaAbstract
-
生成随机验证码
- alphas() - Method in class com.wf.captcha.base.Captcha
-
生成随机验证码
- alphas() - Method in class com.wf.captcha.base.ChineseCaptchaAbstract
-
生成随机验证码
- alterneigh(int, int, int, int, int) - Method in class com.wf.captcha.utils.Quant
- altersingle(int, int, int, int, int) - Method in class com.wf.captcha.utils.Quant
- analyzePixels() - Method in class com.wf.captcha.utils.GifEncoder
-
Analyzes image colors and creates color map.
- ArithmeticCaptcha - Class in com.wf.captcha
-
png格式验证码
- ArithmeticCaptcha() - Constructor for class com.wf.captcha.ArithmeticCaptcha
- ArithmeticCaptcha(int, int) - Constructor for class com.wf.captcha.ArithmeticCaptcha
- ArithmeticCaptcha(int, int, int) - Constructor for class com.wf.captcha.ArithmeticCaptcha
- ArithmeticCaptcha(int, int, int, Font) - Constructor for class com.wf.captcha.ArithmeticCaptcha
- ArithmeticCaptchaAbstract - Class in com.wf.captcha.base
-
算术验证码抽象类
- ArithmeticCaptchaAbstract() - Constructor for class com.wf.captcha.base.ArithmeticCaptchaAbstract
B
- BETA - Static variable in class com.wf.captcha.utils.Quant
- BETAGAMMA - Static variable in class com.wf.captcha.utils.Quant
- BETASHIFT - Static variable in class com.wf.captcha.utils.Quant
- bias - Variable in class com.wf.captcha.utils.Quant
C
- Captcha - Class in com.wf.captcha.base
-
验证码抽象类
- Captcha() - Constructor for class com.wf.captcha.base.Captcha
- CHAR_MAX_INDEX - Static variable in class com.wf.captcha.base.Randoms
-
字符的最大索引,不包括最大值
- CHAR_MIN_INDEX - Static variable in class com.wf.captcha.base.Randoms
-
字符的最小索引,包括最小值
- chars - Variable in class com.wf.captcha.base.Captcha
- charType - Variable in class com.wf.captcha.base.Captcha
- checkAlpha() - Method in class com.wf.captcha.base.Captcha
-
检查验证码是否生成,没有则立即生成
- ChineseCaptcha - Class in com.wf.captcha
-
中文验证码
- ChineseCaptcha() - Constructor for class com.wf.captcha.ChineseCaptcha
- ChineseCaptcha(int, int) - Constructor for class com.wf.captcha.ChineseCaptcha
- ChineseCaptcha(int, int, int) - Constructor for class com.wf.captcha.ChineseCaptcha
- ChineseCaptcha(int, int, int, Font) - Constructor for class com.wf.captcha.ChineseCaptcha
- ChineseCaptchaAbstract - Class in com.wf.captcha.base
-
中文验证码抽象类
- ChineseCaptchaAbstract() - Constructor for class com.wf.captcha.base.ChineseCaptchaAbstract
- ChineseGifCaptcha - Class in com.wf.captcha
-
中文gif验证码
- ChineseGifCaptcha() - Constructor for class com.wf.captcha.ChineseGifCaptcha
- ChineseGifCaptcha(int, int) - Constructor for class com.wf.captcha.ChineseGifCaptcha
- ChineseGifCaptcha(int, int, int) - Constructor for class com.wf.captcha.ChineseGifCaptcha
- ChineseGifCaptcha(int, int, int, Font) - Constructor for class com.wf.captcha.ChineseGifCaptcha
- closeStream - Variable in class com.wf.captcha.utils.GifEncoder
- color() - Method in class com.wf.captcha.base.Captcha
-
获取随机常用颜色
- color(int, int) - Method in class com.wf.captcha.base.Captcha
-
给定范围获得随机颜色
- COLOR - Static variable in class com.wf.captcha.base.Captcha
- colorDepth - Variable in class com.wf.captcha.utils.GifEncoder
- colorMap() - Method in class com.wf.captcha.utils.Quant
- colorTab - Variable in class com.wf.captcha.utils.GifEncoder
- com.wf.captcha - package com.wf.captcha
- com.wf.captcha.base - package com.wf.captcha.base
- com.wf.captcha.utils - package com.wf.captcha.utils
- contest(int, int, int) - Method in class com.wf.captcha.utils.Quant
D
- delay - Variable in class com.wf.captcha.utils.GifEncoder
- DELTA - Static variable in class com.wf.captcha.base.ChineseCaptchaAbstract
- dispose - Variable in class com.wf.captcha.utils.GifEncoder
- drawBesselLine(int, Color, Graphics2D) - Method in class com.wf.captcha.base.Captcha
-
随机画贝塞尔曲线
- drawBesselLine(int, Graphics2D) - Method in class com.wf.captcha.base.Captcha
-
随机画贝塞尔曲线
- drawLine(int, Color, Graphics2D) - Method in class com.wf.captcha.base.Captcha
-
随机画干扰线
- drawLine(int, Graphics2D) - Method in class com.wf.captcha.base.Captcha
-
随机画干扰线
- drawOval(int, Color, Graphics2D) - Method in class com.wf.captcha.base.Captcha
-
随机画干扰圆
- drawOval(int, Graphics2D) - Method in class com.wf.captcha.base.Captcha
-
随机画干扰圆
E
- Encoder - Class in com.wf.captcha.utils
F
- findClosest(Color) - Method in class com.wf.captcha.utils.GifEncoder
-
Returns index of palette color closest to c
- finish() - Method in class com.wf.captcha.utils.GifEncoder
-
Flushes any pending data and closes output file.
- firstFrame - Variable in class com.wf.captcha.utils.GifEncoder
- FONT_1 - Static variable in class com.wf.captcha.base.Captcha
- FONT_10 - Static variable in class com.wf.captcha.base.Captcha
- FONT_2 - Static variable in class com.wf.captcha.base.Captcha
- FONT_3 - Static variable in class com.wf.captcha.base.Captcha
- FONT_4 - Static variable in class com.wf.captcha.base.Captcha
- FONT_5 - Static variable in class com.wf.captcha.base.Captcha
- FONT_6 - Static variable in class com.wf.captcha.base.Captcha
- FONT_7 - Static variable in class com.wf.captcha.base.Captcha
- FONT_8 - Static variable in class com.wf.captcha.base.Captcha
- FONT_9 - Static variable in class com.wf.captcha.base.Captcha
- freq - Variable in class com.wf.captcha.utils.Quant
G
- GAMMA - Static variable in class com.wf.captcha.utils.Quant
-
gamma = 1024
- GAMMASHIFT - Static variable in class com.wf.captcha.utils.Quant
- getArithmeticString() - Method in class com.wf.captcha.base.ArithmeticCaptchaAbstract
- getCharType() - Method in class com.wf.captcha.base.Captcha
- getContentType() - Method in class com.wf.captcha.ArithmeticCaptcha
- getContentType() - Method in class com.wf.captcha.base.Captcha
-
获取图片类型
- getContentType() - Method in class com.wf.captcha.ChineseCaptcha
- getContentType() - Method in class com.wf.captcha.ChineseGifCaptcha
- getContentType() - Method in class com.wf.captcha.GifCaptcha
- getContentType() - Method in class com.wf.captcha.SpecCaptcha
- getFont() - Method in class com.wf.captcha.base.Captcha
- getFrameByteArray() - Method in class com.wf.captcha.utils.GifEncoder
- getHeight() - Method in class com.wf.captcha.base.Captcha
- getImagePixels() - Method in class com.wf.captcha.utils.GifEncoder
-
Extracts image pixels into byte array "pixels"
- getLen() - Method in class com.wf.captcha.base.Captcha
- getWidth() - Method in class com.wf.captcha.base.Captcha
- GifCaptcha - Class in com.wf.captcha
-
Gif验证码类 Created by 王帆 on 2018-07-27 上午 10:08.
- GifCaptcha() - Constructor for class com.wf.captcha.GifCaptcha
- GifCaptcha(int, int) - Constructor for class com.wf.captcha.GifCaptcha
- GifCaptcha(int, int, int) - Constructor for class com.wf.captcha.GifCaptcha
- GifCaptcha(int, int, int, Font) - Constructor for class com.wf.captcha.GifCaptcha
- GifEncoder - Class in com.wf.captcha.utils
-
Gif生成工具 Class AnimatedGifEncoder - Encodes a GIF file consisting of one or more frames.
- GifEncoder() - Constructor for class com.wf.captcha.utils.GifEncoder
H
- height - Variable in class com.wf.captcha.base.Captcha
- height - Variable in class com.wf.captcha.utils.GifEncoder
I
- image - Variable in class com.wf.captcha.utils.GifEncoder
- indexedPixels - Variable in class com.wf.captcha.utils.GifEncoder
- INITALPHA - Static variable in class com.wf.captcha.utils.Quant
- INITRAD - Static variable in class com.wf.captcha.utils.Quant
- INITRADIUS - Static variable in class com.wf.captcha.utils.Quant
- INTBIAS - Static variable in class com.wf.captcha.utils.Quant
- INTBIASSHIFT - Static variable in class com.wf.captcha.utils.Quant
-
defs for freq and bias.
- inxbuild() - Method in class com.wf.captcha.utils.Quant
L
- learn() - Method in class com.wf.captcha.utils.Quant
- len - Variable in class com.wf.captcha.base.Captcha
- lengthcount - Variable in class com.wf.captcha.utils.Quant
- LOWER_MAX_INDEX - Static variable in class com.wf.captcha.base.Randoms
-
小写字母最大索引
- LOWER_MIN_INDEX - Static variable in class com.wf.captcha.base.Randoms
-
小写字母最小索引
M
- map(int, int, int) - Method in class com.wf.captcha.utils.Quant
- MAX_NETPOS - Static variable in class com.wf.captcha.utils.Quant
- MIN_PICTURE_BYTES - Static variable in class com.wf.captcha.utils.Quant
N
- NCYCLES - Static variable in class com.wf.captcha.utils.Quant
-
no. of learning cycles
- NET_BIAS_SHIFT - Static variable in class com.wf.captcha.utils.Quant
-
bias for colour values
- NET_SIZE - Static variable in class com.wf.captcha.utils.Quant
-
number of colours used
- netindex - Variable in class com.wf.captcha.utils.Quant
- network - Variable in class com.wf.captcha.utils.Quant
- num(int) - Static method in class com.wf.captcha.base.Randoms
-
产生0-num的随机数,不包括num
- num(int, int) - Static method in class com.wf.captcha.base.Randoms
-
产生两个数之间的随机数
- NUM_MAX_INDEX - Static variable in class com.wf.captcha.base.Randoms
-
数字的最大索引,不包括最大值
O
- out - Variable in class com.wf.captcha.utils.GifEncoder
- out(OutputStream) - Method in class com.wf.captcha.ArithmeticCaptcha
-
生成验证码
- out(OutputStream) - Method in class com.wf.captcha.base.Captcha
-
验证码输出,抽象方法,由子类实现
- out(OutputStream) - Method in class com.wf.captcha.ChineseCaptcha
-
生成验证码
- out(OutputStream) - Method in class com.wf.captcha.ChineseGifCaptcha
- out(OutputStream) - Method in class com.wf.captcha.GifCaptcha
- out(OutputStream) - Method in class com.wf.captcha.SpecCaptcha
-
生成验证码
- outFlush() - Method in class com.wf.captcha.utils.GifEncoder
P
- palSize - Variable in class com.wf.captcha.utils.GifEncoder
- pixels - Variable in class com.wf.captcha.utils.GifEncoder
- PRIME_1 - Static variable in class com.wf.captcha.utils.Quant
-
four primes near 500 - assume no image has a length so.
- PRIME_2 - Static variable in class com.wf.captcha.utils.Quant
- PRIME_3 - Static variable in class com.wf.captcha.utils.Quant
- PRIME_4 - Static variable in class com.wf.captcha.utils.Quant
- process() - Method in class com.wf.captcha.utils.Quant
Q
- Quant - Class in com.wf.captcha.utils
- Quant(byte[], int, int) - Constructor for class com.wf.captcha.utils.Quant
R
- RADBIAS - Static variable in class com.wf.captcha.utils.Quant
- RADBIASSHIFT - Static variable in class com.wf.captcha.utils.Quant
- RADIUSBIAS - Static variable in class com.wf.captcha.utils.Quant
- RADIUSBIASSHIFT - Static variable in class com.wf.captcha.utils.Quant
- RADIUSDEC - Static variable in class com.wf.captcha.utils.Quant
- radpower - Variable in class com.wf.captcha.utils.Quant
- RANDOM - Static variable in class com.wf.captcha.base.Randoms
- Randoms - Class in com.wf.captcha.base
-
随机数工具类 Created by 王帆 on 2018-07-27 上午 10:08.
- Randoms() - Constructor for class com.wf.captcha.base.Randoms
- repeat - Variable in class com.wf.captcha.utils.GifEncoder
- reset() - Method in class com.wf.captcha.utils.GifEncoder
S
- sample - Variable in class com.wf.captcha.utils.GifEncoder
- samplefac - Variable in class com.wf.captcha.utils.Quant
- setArithmeticString(String) - Method in class com.wf.captcha.base.ArithmeticCaptchaAbstract
- setCharType(int) - Method in class com.wf.captcha.base.Captcha
- setDelay(int) - Method in class com.wf.captcha.utils.GifEncoder
-
Sets the delay time between each frame, or changes it for subsequent frames (applies to last frame added).
- setDispose(int) - Method in class com.wf.captcha.utils.GifEncoder
-
Sets the GIF frame disposal code for the last added frame and any subsequent frames.
- setFont(int) - Method in class com.wf.captcha.base.Captcha
- setFont(int, float) - Method in class com.wf.captcha.base.Captcha
- setFont(int, int, float) - Method in class com.wf.captcha.base.Captcha
- setFont(Font) - Method in class com.wf.captcha.base.Captcha
- setFrameRate(float) - Method in class com.wf.captcha.utils.GifEncoder
-
Sets frame rate in frames per second.
- setHeight(int) - Method in class com.wf.captcha.base.Captcha
- setLen(int) - Method in class com.wf.captcha.base.Captcha
- setQuality(int) - Method in class com.wf.captcha.utils.GifEncoder
-
Sets quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specification).
- setRepeat(int) - Method in class com.wf.captcha.utils.GifEncoder
-
Sets the number of times the set of GIF frames should be played.
- setSize(int, int) - Method in class com.wf.captcha.utils.GifEncoder
-
Sets the GIF frame size.
- setTransparent(Color) - Method in class com.wf.captcha.utils.GifEncoder
-
Sets the transparent color for the last added frame and any subsequent frames.
- setWidth(int) - Method in class com.wf.captcha.base.Captcha
- sizeSet - Variable in class com.wf.captcha.utils.GifEncoder
- SpecCaptcha - Class in com.wf.captcha
-
png格式验证码
- SpecCaptcha() - Constructor for class com.wf.captcha.SpecCaptcha
- SpecCaptcha(int, int) - Constructor for class com.wf.captcha.SpecCaptcha
- SpecCaptcha(int, int, int) - Constructor for class com.wf.captcha.SpecCaptcha
- SpecCaptcha(int, int, int, Font) - Constructor for class com.wf.captcha.SpecCaptcha
- start(OutputStream) - Method in class com.wf.captcha.utils.GifEncoder
-
Initiates GIF file creation on the given stream.
- start(String) - Method in class com.wf.captcha.utils.GifEncoder
-
Initiates writing of a GIF file with the specified name.
- started - Variable in class com.wf.captcha.utils.GifEncoder
T
- text() - Method in class com.wf.captcha.base.Captcha
-
获取当前的验证码
- textChar() - Method in class com.wf.captcha.base.Captcha
-
获取当前验证码的字符数组
- thepicture - Variable in class com.wf.captcha.utils.Quant
- toBase64() - Method in class com.wf.captcha.ArithmeticCaptcha
- toBase64() - Method in class com.wf.captcha.base.Captcha
-
输出base64编码
- toBase64() - Method in class com.wf.captcha.ChineseCaptcha
- toBase64() - Method in class com.wf.captcha.ChineseGifCaptcha
- toBase64() - Method in class com.wf.captcha.GifCaptcha
- toBase64() - Method in class com.wf.captcha.SpecCaptcha
- toBase64(String) - Method in class com.wf.captcha.base.Captcha
-
输出base64编码
- transIndex - Variable in class com.wf.captcha.utils.GifEncoder
- transparent - Variable in class com.wf.captcha.utils.GifEncoder
- TYPE_DEFAULT - Static variable in class com.wf.captcha.base.Captcha
- TYPE_NUM_AND_UPPER - Static variable in class com.wf.captcha.base.Captcha
- TYPE_ONLY_CHAR - Static variable in class com.wf.captcha.base.Captcha
- TYPE_ONLY_LOWER - Static variable in class com.wf.captcha.base.Captcha
- TYPE_ONLY_NUMBER - Static variable in class com.wf.captcha.base.Captcha
- TYPE_ONLY_UPPER - Static variable in class com.wf.captcha.base.Captcha
U
- unbiasnet() - Method in class com.wf.captcha.utils.Quant
- UPPER_MAX_INDEX - Static variable in class com.wf.captcha.base.Randoms
-
大写字符最大索引
- UPPER_MIN_INDEX - Static variable in class com.wf.captcha.base.Randoms
-
大写字符最小索引
- usedEntry - Variable in class com.wf.captcha.utils.GifEncoder
W
- width - Variable in class com.wf.captcha.base.Captcha
- width - Variable in class com.wf.captcha.utils.GifEncoder
- writeGraphicCtrlExt() - Method in class com.wf.captcha.utils.GifEncoder
-
Writes Graphic Control Extension
- writeImageDesc() - Method in class com.wf.captcha.utils.GifEncoder
-
Writes Image Descriptor
- writeLSD() - Method in class com.wf.captcha.utils.GifEncoder
-
Writes Logical Screen Descriptor
- writeNetscapeExt() - Method in class com.wf.captcha.utils.GifEncoder
-
Writes Netscape application extension to define repeat count.
- writePalette() - Method in class com.wf.captcha.utils.GifEncoder
-
Writes color table
- writePixels() - Method in class com.wf.captcha.utils.GifEncoder
-
Encodes and writes pixel data
- writeShort(int) - Method in class com.wf.captcha.utils.GifEncoder
-
Write 16-bit value to output stream, LSB first
- writeString(String) - Method in class com.wf.captcha.utils.GifEncoder
-
Writes string to output stream
All Classes and Interfaces|All Packages|Constant Field Values