Class SimpleBarcodesUtility
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.extensions.modules.sbarcodes.SimpleBarcodesUtility
-
public class SimpleBarcodesUtility extends Object
This utility shares withSimpleBarcodesExpression
andSimpleBarcodesType
the initial barcode creation mainly based on the type which is given as a string.- Author:
- Cedric Pronzato
-
-
Field Summary
Fields Modifier and Type Field Description static String
BARCODE_2OF5
Symbology accepting 0-9.
This barcode supports checksum property.
Also known as 2of5std.static 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.static String
BARCODE_CODABAR
Symbology accepting O-9 plus 6 additional characters '-' '$' '.' ':' '/' '+'.
Also known as code27, 2of7, usd4, nw7, monarch.static String
BARCODE_CODE128
Symbology accepting ASCII (128 characters) in a reduced space.
It automaticaly switch between the diffrent code sets.static String
BARCODE_CODE128A
Symbology accepting 0-9 A-Z ' ' '!' '"' '#' '$' '%' '&' ''' '(' ')' '*' '+' '-' ',' '.' '/' ';' ':' '<' '>' '=' '?' '@' '[' ']' '^' '_' and a lot of control characters.static String
BARCODE_CODE128B
Symbology accepting ASCII (128 characters)static String
BARCODE_CODE128C
Symbology accepting numbers.static 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.static String
BARCODE_CODE39EXT
Symbology accepting ASCII (128 characters).
Also known as 3of9ext, usd3ext, usd-3ext.static String
BARCODE_DATAMATRIX
static String
BARCODE_EAN128
static String
BARCODE_EAN13
Symbology accepting 0-9 with a size of 12 characters.static String
BARCODE_EAN8
static String
BARCODE_ISBN
Symbology accepting 0-9 with a size of 10 characters.static 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.static String
BARCODE_POSTNET
Symbology accepting 0-9 with a size of 5 to 11 characters?static String
BARCODE_ROYALMAIL
static String
BARCODE_UCCEAN128
Symbology accepting numbers.
This barcode supports checksum property.static String
BARCODE_UPCA
Symbology accepting 0-9 with a size of 12 characters.static String
BARCODE_UPCE
static String
BARCODE_USPSINTELLIGENTMAIL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static net.sourceforge.barbecue.Barcode
createBarcode(String data, String type, boolean checksum)
static org.krysalis.barcode4j.BarcodeGenerator
createBarcode4J(String type, boolean showText, boolean checksum, Number barHeight)
static String
getBarcodeSampleData(String type)
-
-
-
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_CODE128C
public static final String BARCODE_CODE128C
Symbology accepting numbers.- 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
-
BARCODE_EAN8
public static final String BARCODE_EAN8
- See Also:
- Constant Field Values
-
BARCODE_EAN128
public static final String BARCODE_EAN128
- See Also:
- Constant Field Values
-
BARCODE_UPCE
public static final String BARCODE_UPCE
- See Also:
- Constant Field Values
-
BARCODE_DATAMATRIX
public static final String BARCODE_DATAMATRIX
- See Also:
- Constant Field Values
-
BARCODE_ROYALMAIL
public static final String BARCODE_ROYALMAIL
- See Also:
- Constant Field Values
-
BARCODE_USPSINTELLIGENTMAIL
public static final String BARCODE_USPSINTELLIGENTMAIL
- See Also:
- Constant Field Values
-
-