Barcode-Lib4J requires Java 9+
Package de.vwsoft.barcodelib4j.oned
Java Class «ImplCode39E» – Generate Code 39 Extended Barcode
java.lang.Object
de.vwsoft.barcodelib4j.oned.Barcode
de.vwsoft.barcodelib4j.oned.LineageTwoWidth
de.vwsoft.barcodelib4j.oned.ImplCode39
de.vwsoft.barcodelib4j.oned.ImplCode39E
- All Implemented Interfaces:
Cloneable
Implementation of Code 39 Extended ("Full ASCII"). To generate instances, please 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.
This class extends the abstract class LineageTwoWidth
, as Code 39 Extended is a type of
two-width barcode. See the linked class description for more information.
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.
-
Field Summary
Fields inherited from class de.vwsoft.barcodelib4j.oned.LineageTwoWidth
DEFAULT_RATIO
-
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.LineageTwoWidth
getRatio, setRatio
Methods inherited from class de.vwsoft.barcodelib4j.oned.Barcode
clone, draw, draw, draw, getAddOn, getContent, getFont, getText, getTextOffset, isFontSizeAdjusted, isTextOnTop, isTextVisible, newInstance, newInstance, setAddOn, setCustomText, setFont, setFontSizeAdjusted, 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
-