Barcode-Lib4J requires Java 9+
Package de.vwsoft.barcodelib4j.oned
Java Class «ImplCode93» – Generate Code 93 Barcode
java.lang.Object
de.vwsoft.barcodelib4j.oned.Barcode
de.vwsoft.barcodelib4j.oned.ImplCode93
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ImplCode93E
Implementation of Code 93. To generate instances, please use one of the
newInstance
static methods in the Barcode
class.
Code 93 was developed to provide higher information density and data security than
Code 39
. The barcode format encodes the same 43 characters. It includes a
mandatory checksum consisting of 2 digits, which are not displayed in the human-readable text
line.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setContent
(String content, boolean autoComplete, boolean appendOptionalChecksum) Sets the content to be encoded in the barcode.Methods inherited from class de.vwsoft.barcodelib4j.oned.Barcode
clone, draw, draw, draw, getAddOn, getContent, getFont, getRatio, getText, getTextOffset, isFontSizeAdjusted, isOptionalChecksumVisible, isTextOnTop, isTextVisible, newInstance, newInstance, setAddOn, setCustomText, setFont, setFontSizeAdjusted, setOptionalChecksumVisible, setRatio, setTextOffset, setTextOnTop, setTextVisible, supportsAddOn, supportsAutoCompletion, supportsCustomText, supportsOptionalChecksum, supportsRatio, supportsTextOnTop
-
Method Details
-
setContent
public void setContent(String content, boolean autoComplete, boolean appendOptionalChecksum) throws BarcodeException Sets the content to be encoded in the barcode.- Specified by:
setContent
in classBarcode
- Parameters:
content
- the content to be encoded in the Code 93 barcodeautoComplete
- whether to automatically convert lowercase letters in the content to uppercase lettersappendOptionalChecksum
- has no function, as Code 93 uses a mandatory checksum which is not optional- Throws:
BarcodeException
- if the content is empty or contains invalid characters
-