public final class BarcodeFactory
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static BarcodeImpl |
create2of7(java.lang.String data)
Creates a 2 of 7 (Codabar) linear barcode.
|
static BarcodeImpl |
createCodabar(java.lang.String data)
Creates a Codabar linear barcode.
|
static BarcodeImpl |
createCode128(java.lang.String data)
Creates a Code 128 barcode that dynamically switches between character sets
to give the smallest possible encoding.
|
static BarcodeImpl |
createCode128A(java.lang.String data)
Creates a Code 128 barcode using the A character set.
|
static BarcodeImpl |
createCode128B(java.lang.String data)
Creates a Code 128 barcode using the B character set.
|
static BarcodeImpl |
createCode128C(java.lang.String data)
Creates a Code 128 barcode using the C character set.
|
static BarcodeImpl |
createCode39(java.lang.String data,
boolean requiresChecksum)
Creates a Code 39 linear barcode.
|
static BarcodeImpl |
createEAN128(java.lang.String data)
Creates a EAN 128 barcode.
|
static BarcodeImpl |
createEAN13(java.lang.String data) |
static BarcodeImpl |
createGlobalTradeItemNumber(java.lang.String data)
Creates a Global Trade Item Number (GTIN) based on the UCC/EAN 128 symbology.
|
static BarcodeImpl |
createITF25(java.lang.String data,
int height,
double width,
boolean drawLabel) |
static BarcodeImpl |
createMonarch(java.lang.String data)
Creates a Monarch (Codabar) linear barcode.
|
static BarcodeImpl |
createNW7(java.lang.String data)
Creates a NW-7 (Codabar) linear barcode.
|
static BarcodeImpl |
createPDF417(java.lang.String data)
Creates a PDF417 two dimensional barcode.
|
static BarcodeImpl |
createQRcode(java.lang.String data) |
static BarcodeImpl |
createSCC14ShippingCode(java.lang.String data)
Creates an SCC-14 shipping code number based on the UCC/EAN 128 symbology.
|
static BarcodeImpl |
createShipmentIdentificationNumber(java.lang.String data)
Creates a shipment identification number based on the UCC/EAN 128 symbology.
|
static BarcodeImpl |
createSSCC18(java.lang.String data)
Creates an SSCC-18 number based on the UCC/EAN 128 symbology.
|
static BarcodeImpl |
createUCC128(java.lang.String applicationIdentifier,
java.lang.String data)
Creates a UCC 128 barcode.
|
static BarcodeImpl |
createUSD4(java.lang.String data)
Creates a USD-4 (Codabar) linear barcode.
|
static BarcodeImpl |
createUSPS(java.lang.String data)
Creates a US Postal Service barcode based on the UCC/EAN 128 symbology.
|
public static BarcodeImpl createCode128(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createCode128A(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createCode128B(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createCode128C(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createUCC128(java.lang.String applicationIdentifier, java.lang.String data) throws BarcodeException
applicationIdentifier
- The application identifier for the domaindata
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createEAN128(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createEAN13(java.lang.String data) throws BarcodeException
BarcodeException
public static BarcodeImpl createUSPS(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createShipmentIdentificationNumber(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createSSCC18(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createSCC14ShippingCode(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createGlobalTradeItemNumber(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createPDF417(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createCode39(java.lang.String data, boolean requiresChecksum) throws BarcodeException
data
- The data to encoderequiresChecksum
- True if a check digit is required, false if notBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createCodabar(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createUSD4(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createNW7(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createMonarch(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl create2of7(java.lang.String data) throws BarcodeException
data
- The data to encodeBarcodeException
- If the data to be encoded is invalidpublic static BarcodeImpl createQRcode(java.lang.String data) throws BarcodeException
BarcodeException
public static BarcodeImpl createITF25(java.lang.String data, int height, double width, boolean drawLabel) throws BarcodeException
BarcodeException