Class SimpleBarcodesUtility


  • public class SimpleBarcodesUtility
    extends Object
    This utility shares with SimpleBarcodesExpression and SimpleBarcodesType the initial barcode creation mainly based on the type which is given as a string.
    Author:
    Cedric Pronzato
    • Field Detail

      • BARCODE_CODE39

        public static final String BARCODE_CODE39
        Symbology accepting A-Z 0-9 and 8 special characters '-' '.' ' ' '*' '$' '/' '+' '%'.
        Also known as 3of9, usd3, usd-3.
        This barcode supports checksum property.
        See Also:
        Constant Field Values
      • BARCODE_CODE39EXT

        public static final String BARCODE_CODE39EXT
        Symbology accepting ASCII (128 characters).
        Also known as 3of9ext, usd3ext, usd-3ext.
        This barcode supports checksum property.
        See Also:
        Constant Field Values
      • BARCODE_CODABAR

        public static final String BARCODE_CODABAR
        Symbology accepting O-9 plus 6 additional characters '-' '$' '.' ':' '/' '+'.
        Also known as code27, 2of7, usd4, nw7, monarch.
        See Also:
        Constant Field Values
      • BARCODE_CODE128

        public static final String BARCODE_CODE128
        Symbology accepting ASCII (128 characters) in a reduced space.
        It automaticaly switch between the diffrent code sets.
        See Also:
        Constant Field Values
      • BARCODE_CODE128A

        public static final String BARCODE_CODE128A
        Symbology accepting 0-9 A-Z ' ' '!' '"' '#' '$' '%' '&' ''' '(' ')' '*' '+' '-' ',' '.' '/' ';' ':' '<' '>' '=' '?' '@' '[' ']' '^' '_' and a lot of control characters.
        See Also:
        Constant Field Values
      • BARCODE_CODE128B

        public static final String BARCODE_CODE128B
        Symbology accepting ASCII (128 characters)
        See Also:
        Constant Field Values
      • BARCODE_EAN13

        public static final String BARCODE_EAN13
        Symbology accepting 0-9 with a size of 12 characters. If the size is 11 a checksum will be automaticaly added.
        Also known as ean-13.
        See Also:
        Constant Field Values
      • BARCODE_UPCA

        public static final String BARCODE_UPCA
        Symbology accepting 0-9 with a size of 12 characters. If the size is 11 a checksum will be automaticaly added.
        Also known as upc-a.
        See Also:
        Constant Field Values
      • BARCODE_ISBN

        public static final String BARCODE_ISBN
        Symbology accepting 0-9 with a size of 10 characters. If the size is 9 a checksum will be automaticaly added?
        Also known as bookland.
        See Also:
        Constant Field Values
      • BARCODE_UCCEAN128

        public static final String BARCODE_UCCEAN128
        Symbology accepting numbers.
        This barcode supports checksum property.
        See Also:
        Constant Field Values
      • BARCODE_2OF5

        public static final String BARCODE_2OF5
        Symbology accepting 0-9.
        This barcode supports checksum property.
        Also known as 2of5std.
        See Also:
        Constant Field Values
      • BARCODE_2OF5INT

        public static final String BARCODE_2OF5INT
        Symbology accepting 0-9 in a reduced space in comparison of standard 2of5.
        This barcode supports checksum property.
        Also known as 2of5std.
        See Also:
        Constant Field Values
      • BARCODE_POSTNET

        public static final String BARCODE_POSTNET
        Symbology accepting 0-9 with a size of 5 to 11 characters?
        See Also:
        Constant Field Values
      • BARCODE_PDF417

        public static final String BARCODE_PDF417
        2 dimensional symbology accepting 2700 characters long.
        This barcode does not support any of the conventional barcode properties (barWidth, barHeight, checksum, showText, ...).
        Also known as pdf-417.
        See Also:
        Constant Field Values
    • Method Detail

      • createBarcode

        public static net.sourceforge.barbecue.Barcode createBarcode​(String data,
                                                                     String type,
                                                                     boolean checksum)
      • createBarcode4J

        public static org.krysalis.barcode4j.BarcodeGenerator createBarcode4J​(String type,
                                                                              boolean showText,
                                                                              boolean checksum,
                                                                              Number barHeight)
      • getBarcodeSampleData

        public static String getBarcodeSampleData​(String type)