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.DecodeHintType,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.DecodeHintType,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.DecodeHintType,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.DecodeHintType,java.lang.String> hints) throws com.google.zxing.WriterException, java.lang.Exception
contents
- format
- width
- height
- hints
- com.google.zxing.WriterException
java.lang.Exception
public 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.WriterException
java.lang.Exception
public 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.WriterException
java.lang.Exception
public static boolean createBarCodeImageToFile(java.lang.String contents, com.google.zxing.BarcodeFormat format, int width, int height, java.util.Hashtable<com.google.zxing.DecodeHintType,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 ImageIO
file
- com.google.zxing.WriterException
java.lang.Exception
public 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 ImageIO
file
- com.google.zxing.WriterException
java.lang.Exception
public 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 ImageIO
file
- com.google.zxing.WriterException
java.lang.Exception
public static boolean createBarCodeImageToStream(java.lang.String contents, com.google.zxing.BarcodeFormat format, int width, int height, java.util.Hashtable<com.google.zxing.DecodeHintType,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 ImageIO
stream
- com.google.zxing.WriterException
java.lang.Exception
public 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 ImageIO
stream
- com.google.zxing.WriterException
java.lang.Exception
public 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 ImageIO
stream
- com.google.zxing.WriterException
java.lang.Exception
public 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.NotFoundException
public static com.google.zxing.Result decodeBarCode(java.awt.image.BufferedImage image) throws com.google.zxing.NotFoundException
image
- com.google.zxing.NotFoundException
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- java.lang.Exception
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.