public class Codabar extends AbstractBarcodeStrategy implements java.io.Serializable
BarcodeStrategy interface,
knows how to encode the 3:1 (wide)
variant of the Codabar barcode type.AbstractBarcodeStrategy.CharacterCodeMANDATORY_CHECKSUM, NO_CHECKSUM, OPTIONAL_CHECKSUM| Constructor and Description |
|---|
Codabar() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
augmentWithChecksum(java.lang.String text)
Codabar does not have a checksum, so this function should never be called.
|
protected java.lang.String |
getBarcodeLabelText(java.lang.String text)
This implementation of getBarcodeLabelText does nothing except return
the text passed to the method.
|
protected AbstractBarcodeStrategy.CharacterCode[] |
getCodes()
This implementation of getCodes returns an array of
CharacterCode objects
for the wide Codabar format. |
protected byte |
getMarginWidth()
Always returns 11 (eleven).
|
protected char |
getStartSentinel()
Always returns 'A'.
|
protected char |
getStopSentinel()
Always returns 'B'.
|
protected boolean |
isInterleaved()
Always returns false
|
protected java.lang.String |
postprocess(java.lang.String text)
This implementation of postprocess does nothing except return
the text passed to the method.
|
protected java.lang.String |
preprocess(java.lang.String text)
This implementation of preprocess does nothing except return
the text passed to the method.
|
int |
requiresChecksum()
Always returns
BarcodeStrategy.NO_CHECKSUM. |
computeSize, encode, getCharacterCode, getCharacterCodepublic int requiresChecksum()
BarcodeStrategy.NO_CHECKSUM.requiresChecksum in interface BarcodeStrategyprotected AbstractBarcodeStrategy.CharacterCode[] getCodes()
CharacterCode objects
for the wide Codabar format.getCodes in class AbstractBarcodeStrategyCharacterCode
objects, one for each possible character
that can be encoded using this strategy.protected java.lang.String augmentWithChecksum(java.lang.String text)
throws BarcodeException
augmentWithChecksum in class AbstractBarcodeStrategytext - The text to encode (after preprocessing - see
AbstractBarcodeStrategy.preprocess(java.lang.String)).BarcodeExceptionprotected java.lang.String postprocess(java.lang.String text)
postprocess in class AbstractBarcodeStrategytext - String to process (returned by
AbstractBarcodeStrategy.augmentWithChecksum(java.lang.String)).protected java.lang.String preprocess(java.lang.String text)
preprocess in class AbstractBarcodeStrategytext - The raw text to encode.protected boolean isInterleaved()
isInterleaved in class AbstractBarcodeStrategyprotected char getStartSentinel()
getStartSentinel in class AbstractBarcodeStrategyprotected char getStopSentinel()
getStopSentinel in class AbstractBarcodeStrategyprotected byte getMarginWidth()
getMarginWidth in class AbstractBarcodeStrategyprotected java.lang.String getBarcodeLabelText(java.lang.String text)
getBarcodeLabelText in class AbstractBarcodeStrategytext - The raw text to encode.Copyright ? 2022. All Rights Reserved.