Package | Description |
---|---|
fcomponent.jbarcodebean |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
AbstractBarcodeStrategy.augmentWithChecksum(java.lang.String text)
Subclasses implement this method to calculate the checksum from the text
to encode, and return a String containing the text with the checksum
included.
|
protected java.lang.String |
BaseCode39.augmentWithChecksum(java.lang.String text)
Returns a String containing the checksum-encoded version of the text passed
to the method.
|
protected java.lang.String |
Codabar.augmentWithChecksum(java.lang.String text)
Codabar does not have a checksum, so this function should never be called.
|
protected java.lang.String |
Code128.augmentWithChecksum(java.lang.String text)
Returns a String containing the checksum-encoded version of the text passed
to the method.
|
protected java.lang.String |
Interleaved25.augmentWithChecksum(java.lang.String text)
Returns a String containing the checksum-encoded version of the text passed
to the method.
|
protected java.lang.String |
MSI.augmentWithChecksum(java.lang.String text)
Returns a String containing the checksum-encoded version of the text passed
to the method.
|
protected int |
AbstractBarcodeStrategy.computeSize(java.lang.String text)
Computes the length of the barcode (in bar/space modules) based on the
text to encode.
|
EncodedBarcode |
AbstractBarcodeStrategy.encode(java.lang.String textToEncode,
boolean checked)
This implementation carries out the following steps:
Call
AbstractBarcodeStrategy.preprocess(java.lang.String)
Call AbstractBarcodeStrategy.augmentWithChecksum(java.lang.String) to add in the checksum
Call AbstractBarcodeStrategy.postprocess(java.lang.String)
Adds in the start and end sentinels
Use the CharacterCode array returned by getCodes to encode the text into a barcode
Insert left and right margins
Return EncodedBarcode object
|
EncodedBarcode |
BarcodeStrategy.encode(java.lang.String text,
boolean checked)
Subclasses implement this method to encode some text into a barcode.
|
protected abstract java.lang.String |
AbstractBarcodeStrategy.preprocess(java.lang.String text)
Subclasses implement this method to perform any preprocessing necessary on the
original text to encode.
|
protected java.lang.String |
Code128.preprocess(java.lang.String text)
Inserts start character and code change characters.
|
void |
JBarcodeBean.setCheckDigit(boolean checkDigit)
Mutator method for the checkDigit property,
which determines whether a check digit is encoded in the
barcode.
|
Copyright ? 2022. All Rights Reserved.