Barcode-Lib4J requires Java 11+
Package de.vwsoft.barcodelib4j.oned
Java Class «ImplCode93» – Barcode «Code 93»
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 create instances, 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 TypeMethodDescriptionvoidsetContent(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:
setContentin 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
-