public class BarCodes extends CodeGenerator
charset, decodeHint, encodeHint, errorCorrectionLevel, font, fontColor, format, height, imgButtonMargin, imgTopMargin, suffix, width, wordsButtonMargin, wordsTopMargin, WRITER
Constructor and Description |
---|
BarCodes() |
Modifier and Type | Method and Description |
---|---|
void |
encode(String content,
String words,
OutputStream out)
生成条码到流
|
protected BufferedImage |
getBufferedImage(String content)
获取 BufferedImage
|
protected BufferedImage |
setMargin(BufferedImage image)
设置边距
|
charset, decode, decode, decode, decode, decode, decodeBase64, decodeHint, decodeHint, encode, encode, encode, encodeBase64, encodeBase64, encodeHint, encodeHint, errorCorrectionLevel, font, font, font, font, fontColor, fontColor, format, getCharset, getDecodeHint, getEncodeHint, getErrorCorrectionLevel, getFont, getFontColor, getFormat, getHeight, getImgButtonMargin, getImgTopMargin, getSuffix, getWidth, getWordsButtonMargin, getWordsTopMargin, height, imgButtonMargin, imgMargin, imgTopMargin, insertWords, size, suffix, toErrorCorrectionLevel, width, wordsButtonMargin, wordsMargin, wordsTopMargin
protected BufferedImage getBufferedImage(String content)
CodeGenerator
getBufferedImage
in class CodeGenerator
content
- 条形码内容protected BufferedImage setMargin(BufferedImage image)
image
- imagepublic void encode(String content, String words, OutputStream out)
CodeGenerator
encode
in class CodeGenerator
content
- 内容words
- 文字out
- outputStreamCopyright © 2024. All rights reserved.