Barcode-Lib4J requires Java 11+
Package de.vwsoft.barcodelib4j.oned
Java Class «ImplCode39E» – Barcode «Code 39 Extended»
java.lang.Object
de.vwsoft.barcodelib4j.oned.Barcode
de.vwsoft.barcodelib4j.oned.ImplCode39
de.vwsoft.barcodelib4j.oned.ImplCode39E
- All Implemented Interfaces:
Cloneable
Implementation of Code 39 Extended ("Full ASCII"). To create instances, use one of the
newInstance
static methods in the Barcode
class.
Code 39 Extended is a variant of the Code 39
barcode format that supports
a broader range of characters, supporting all 128 ASCII characters.
Barcode scanner configuration: Please note that Code 39 Extended is not technically different from standard Code 39, so a barcode scanner cannot automatically distinguish between the two. To correctly read and interpret Code 39 Extended barcodes, the scanner must be explicitly configured to interpret Code 39 as Extended.
-
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, isTextOnTop, isTextVisible, newInstance, newInstance, setAddOn, setCustomText, setFont, setFontSizeAdjusted, setRatio, setTextOffset, setTextOnTop, setTextVisible, supportsAddOn, supportsCustomText, supportsTextOnTop
-
Method Details
-
setContent
public void setContent(String content, boolean autoComplete, boolean appendOptionalChecksum) throws BarcodeException Sets the content to be encoded in the barcode.- Overrides:
setContent
in classImplCode39
- Parameters:
content
- the content to be encoded in the Code 39 Extended barcodeautoComplete
- has no function in this method implementationappendOptionalChecksum
- whether to append an optional checksum to the content- Throws:
BarcodeException
- if the content is empty or contains non-ASCII characters
-