|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.barbecue.BarcodeFactory
public final class BarcodeFactory
This factory provides a standard way of creating barcodes.
Method Summary | |
---|---|
static Barcode |
create2of7(String data)
Creates a 2 of 7 (Codabar) linear barcode. |
static Barcode |
create3of9(String data,
boolean requiresChecksum)
Creates a Code 3 of 9 (Code 39) linear barcode. |
static Barcode |
createBookland(String isbn)
Creates a Bookland barcode, which is based on the EAN 13 Symbology. |
static Barcode |
createCodabar(String data)
Creates a Codabar linear barcode. |
static Barcode |
createCode128(String data)
Creates a Code 128 barcode that dynamically switches between character sets to give the smallest possible encoding. |
static Barcode |
createCode128A(String data)
Creates a Code 128 barcode using the A character set. |
static Barcode |
createCode128B(String data)
Creates a Code 128 barcode using the B character set. |
static Barcode |
createCode128C(String data)
Creates a Code 128 barcode using the C character set. |
static Barcode |
createCode39(String data,
boolean requiresChecksum)
Creates a Code 39 linear barcode. |
static Barcode |
createEAN128(String data)
Creates a EAN 128 barcode. |
static Barcode |
createEAN13(String data)
Creates a barcode based on the EAN 13 Symbology. |
static Barcode |
createGlobalTradeItemNumber(String data)
Creates a Global Trade Item Number (GTIN) based on the UCC/EAN 128 symbology. |
static Barcode |
createInt2of5(String data)
Creates a barcode based on the Interleave 2 of 5 Symbology. |
static Barcode |
createInt2of5(String data,
boolean checkDigit)
Creates a barcode based on the Interleave 2 of 5 Symbology. |
static Barcode |
createMonarch(String data)
Creates a Monarch (Codabar) linear barcode. |
static Barcode |
createNW7(String data)
Creates a NW-7 (Codabar) linear barcode. |
static Barcode |
createPDF417(String data)
Creates a PDF417 two dimensional barcode. |
static Barcode |
createPostNet(String data)
Creates a PostNet linear barcode. |
static Barcode |
createRandomWeightUPCA(String data)
Creates a barcode based on the UPC-A Symbology signifying a random weight. |
static Barcode |
createSCC14ShippingCode(String data)
Creates an SCC-14 shipping code number based on the UCC/EAN 128 symbology. |
static Barcode |
createShipmentIdentificationNumber(String data)
Creates a shipment identification number based on the UCC/EAN 128 symbology. |
static Barcode |
createSSCC18(String data)
Creates an SSCC-18 number based on the UCC/EAN 128 symbology. |
static Barcode |
createStd2of5(String data)
Creates a barcode based on the Standard 2 of 5 Symbology. |
static Barcode |
createStd2of5(String data,
boolean checkDigit)
Creates a barcode based on the Standard 2 of 5 Symbology. |
static Barcode |
createUCC128(String applicationIdentifier,
String data)
Creates a UCC 128 barcode. |
static Barcode |
createUPCA(String data)
Creates a barcode based on the UPC-A Symbology. |
static Barcode |
createUSD3(String data,
boolean requiresChecksum)
Creates a USD3 (Code 39) linear barcode. |
static Barcode |
createUSD4(String data)
Creates a USD-4 (Codabar) linear barcode. |
static Barcode |
createUSPS(String data)
Creates a US Postal Service barcode based on the UCC/EAN 128 symbology. |
static Barcode |
parseEAN128(String encoded_data)
Create an EAN128 barcode with multiple application identifiers (AI's). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Barcode createCode128(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCode128A(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCode128B(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCode128C(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUCC128(String applicationIdentifier, String data) throws BarcodeException
applicationIdentifier
- The application identifier for the domaindata
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createEAN128(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUSPS(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createShipmentIdentificationNumber(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode parseEAN128(String encoded_data) throws BarcodeException
BarcodeException
public static Barcode createSSCC18(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createSCC14ShippingCode(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createGlobalTradeItemNumber(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createEAN13(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createBookland(String isbn) throws BarcodeException
isbn
- The ISBN of the book to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUPCA(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createRandomWeightUPCA(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createStd2of5(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidcreateStd2of5(String, boolean)
public static Barcode createStd2of5(String data, boolean checkDigit) throws BarcodeException
data
- The data to encodecheckDigit
- if true then a check digit is appended automatically
BarcodeException
- If the data to be encoded is invalidcreateStd2of5(String)
public static Barcode createInt2of5(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidcreateInt2of5(String, boolean)
public static Barcode createInt2of5(String data, boolean checkDigit) throws BarcodeException
data
- The data to encodecheckDigit
- if true then a check digit is appended automatically
BarcodeException
- If the data to be encoded is invalidcreateInt2of5(String)
public static Barcode createPDF417(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCode39(String data, boolean requiresChecksum) throws BarcodeException
data
- The data to encoderequiresChecksum
- True if a check digit is required, false if not
BarcodeException
- If the data to be encoded is invalidpublic static Barcode create3of9(String data, boolean requiresChecksum) throws BarcodeException
data
- The data to encoderequiresChecksum
- True if a check digit is required, false if not
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUSD3(String data, boolean requiresChecksum) throws BarcodeException
data
- The data to encoderequiresChecksum
- True if a check digit is required, false if not
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCodabar(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUSD4(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createNW7(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createMonarch(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode create2of7(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createPostNet(String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |