|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.barbecue.BarcodeFactory
This factory provides a standard way of creating barcodes.
Method Summary | |
static Barcode |
create2of7(java.lang.String data)
Creates a 2 of 7 (Codabar) linear barcode. |
static Barcode |
create3of9(java.lang.String data,
boolean requiresChecksum)
Creates a Code 3 of 9 (Code 39) linear barcode. |
static Barcode |
createBookland(java.lang.String isbn)
Creates a Bookland barcode, which is based on the EAN 13 Symbology. |
static Barcode |
createCodabar(java.lang.String data)
Creates a Codabar linear barcode. |
static Barcode |
createCode128(java.lang.String data)
Creates a Code 128 barcode that dynamically switches between character sets to give the smallest possible encoding. |
static Barcode |
createCode128A(java.lang.String data)
Creates a Code 128 barcode using the A character set. |
static Barcode |
createCode128B(java.lang.String data)
Creates a Code 128 barcode using the B character set. |
static Barcode |
createCode128C(java.lang.String data)
Creates a Code 128 barcode using the C character set. |
static Barcode |
createCode39(java.lang.String data,
boolean requiresChecksum)
Creates a Code 39 linear barcode. |
static Barcode |
createEAN128(java.lang.String data)
Creates a EAN 128 barcode. |
static Barcode |
createEAN13(java.lang.String data)
Creates a barcode based on the EAN 13 Symbology. |
static Barcode |
createGlobalTradeItemNumber(java.lang.String data)
Creates a Global Trade Item Number (GTIN) based on the UCC/EAN 128 symbology. |
static Barcode |
createInt2of5(java.lang.String data)
Creates a barcode based on the Interleave 2 of 5 Symbology. |
static Barcode |
createInt2of5(java.lang.String data,
boolean checkDigit)
Creates a barcode based on the Interleave 2 of 5 Symbology. |
static Barcode |
createMonarch(java.lang.String data)
Creates a Monarch (Codabar) linear barcode. |
static Barcode |
createNW7(java.lang.String data)
Creates a NW-7 (Codabar) linear barcode. |
static Barcode |
createPDF417(java.lang.String data)
Creates a PDF417 two dimensional barcode. |
static Barcode |
createPostNet(java.lang.String data)
Creates a PostNet linear barcode. |
static Barcode |
createRandomWeightUPCA(java.lang.String data)
Creates a barcode based on the UPC-A Symbology signifying a random weight. |
static Barcode |
createSCC14ShippingCode(java.lang.String data)
Creates an SCC-14 shipping code number based on the UCC/EAN 128 symbology. |
static Barcode |
createShipmentIdentificationNumber(java.lang.String data)
Creates a shipment identification number based on the UCC/EAN 128 symbology. |
static Barcode |
createSSCC18(java.lang.String data)
Creates an SSCC-18 number based on the UCC/EAN 128 symbology. |
static Barcode |
createStd2of5(java.lang.String data)
Creates a barcode based on the Standard 2 of 5 Symbology. |
static Barcode |
createStd2of5(java.lang.String data,
boolean checkDigit)
Creates a barcode based on the Standard 2 of 5 Symbology. |
static Barcode |
createUCC128(java.lang.String applicationIdentifier,
java.lang.String data)
Creates a UCC 128 barcode. |
static Barcode |
createUPCA(java.lang.String data)
Creates a barcode based on the UPC-A Symbology. |
static Barcode |
createUSD3(java.lang.String data,
boolean requiresChecksum)
Creates a USD3 (Code 39) linear barcode. |
static Barcode |
createUSD4(java.lang.String data)
Creates a USD-4 (Codabar) linear barcode. |
static Barcode |
createUSPS(java.lang.String data)
Creates a US Postal Service barcode based on the UCC/EAN 128 symbology. |
static Barcode |
parseEAN128(java.lang.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(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCode128A(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCode128B(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCode128C(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUCC128(java.lang.String applicationIdentifier, java.lang.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(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUSPS(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createShipmentIdentificationNumber(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode parseEAN128(java.lang.String encoded_data) throws BarcodeException
BarcodeException
public static Barcode createSSCC18(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createSCC14ShippingCode(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createGlobalTradeItemNumber(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createEAN13(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createBookland(java.lang.String isbn) throws BarcodeException
isbn
- The ISBN of the book to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUPCA(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createRandomWeightUPCA(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createStd2of5(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidcreateStd2of5(String, boolean)
public static Barcode createStd2of5(java.lang.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(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidcreateInt2of5(String, boolean)
public static Barcode createInt2of5(java.lang.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(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createCode39(java.lang.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(java.lang.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(java.lang.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(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createUSD4(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createNW7(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createMonarch(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode create2of7(java.lang.String data) throws BarcodeException
data
- The data to encode
BarcodeException
- If the data to be encoded is invalidpublic static Barcode createPostNet(java.lang.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 |