public class BarCodesUtil
extends java.lang.Object
| Constructor and Description |
|---|
BarCodesUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
createBarCodeImage(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height) |
static java.awt.image.BufferedImage |
createBarCodeImage(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.util.Hashtable<com.google.zxing.EncodeHintType,java.lang.String> hints) |
static boolean |
createBarCodeImageToFile(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.util.Hashtable<com.google.zxing.EncodeHintType,java.lang.String> hints,
java.lang.String imageFormat,
java.io.File file) |
static boolean |
createBarCodeImageToFile(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.lang.String imageFormat,
java.io.File file) |
static boolean |
createBarCodeImageToStream(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.util.Hashtable<com.google.zxing.EncodeHintType,java.lang.String> hints,
java.lang.String imageFormat,
java.io.OutputStream stream) |
static boolean |
createBarCodeImageToStream(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.lang.String imageFormat,
java.io.OutputStream stream) |
static java.awt.image.BufferedImage |
createQRCodeImage(java.lang.String contents,
int width,
int height) |
static boolean |
createQRCodeImageToFile(java.lang.String contents,
int width,
int height,
java.lang.String imageFormat,
java.io.File file) |
static boolean |
createQRCodeImageToStream(java.lang.String contents,
int width,
int height,
java.lang.String imageFormat,
java.io.OutputStream stream) |
static com.google.zxing.Result |
decodeBarCode(java.awt.image.BufferedImage image) |
static com.google.zxing.Result |
decodeBarCode(java.awt.image.BufferedImage image,
java.util.Hashtable<com.google.zxing.DecodeHintType,java.lang.String> hints) |
static void |
main(java.lang.String[] args) |
public static java.awt.image.BufferedImage createBarCodeImage(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.util.Hashtable<com.google.zxing.EncodeHintType,java.lang.String> hints)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - format - width - height - hints - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static java.awt.image.BufferedImage createBarCodeImage(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - format - width - height - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static java.awt.image.BufferedImage createQRCodeImage(java.lang.String contents,
int width,
int height)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - width - height - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static boolean createBarCodeImageToFile(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.util.Hashtable<com.google.zxing.EncodeHintType,java.lang.String> hints,
java.lang.String imageFormat,
java.io.File file)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - format - width - height - hints - imageFormat - see ImageIOfile - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static boolean createBarCodeImageToFile(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.lang.String imageFormat,
java.io.File file)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - format - width - height - imageFormat - see ImageIOfile - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static boolean createQRCodeImageToFile(java.lang.String contents,
int width,
int height,
java.lang.String imageFormat,
java.io.File file)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - width - height - imageFormat - see ImageIOfile - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static boolean createBarCodeImageToStream(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.util.Hashtable<com.google.zxing.EncodeHintType,java.lang.String> hints,
java.lang.String imageFormat,
java.io.OutputStream stream)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - format - width - height - hints - imageFormat - see ImageIOstream - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static boolean createBarCodeImageToStream(java.lang.String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
java.lang.String imageFormat,
java.io.OutputStream stream)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - format - width - height - imageFormat - see ImageIOstream - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static boolean createQRCodeImageToStream(java.lang.String contents,
int width,
int height,
java.lang.String imageFormat,
java.io.OutputStream stream)
throws com.google.zxing.WriterException,
java.lang.Exception
contents - width - height - imageFormat - see ImageIOstream - com.google.zxing.WriterExceptionjava.lang.Exceptionpublic static com.google.zxing.Result decodeBarCode(java.awt.image.BufferedImage image,
java.util.Hashtable<com.google.zxing.DecodeHintType,java.lang.String> hints)
throws com.google.zxing.NotFoundException
image - hints - com.google.zxing.NotFoundExceptionpublic static com.google.zxing.Result decodeBarCode(java.awt.image.BufferedImage image)
throws com.google.zxing.NotFoundException
image - com.google.zxing.NotFoundExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - java.lang.ExceptionCopyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.