public class RoyalMailCBCLogicImpl extends AbstractRMCBCKIXLogicImpl
| Constructor and Description |
|---|
RoyalMailCBCLogicImpl(ChecksumMode mode)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
char |
calcChecksum(String msg)
Calculates the checksum for a message to be encoded as an
one of the foru-state barcode symbologies.
|
protected String |
handleChecksum(String msg)
Handles the checksum, either checking if the right value was specified or adding the
missing checksum depending on the settings.
|
String |
normalizeMessage(String msg)
Turns the given message into a normalize representation.
|
static String |
removeStartStop(String msg)
Removes the start and stop characters from the message.
|
encodeHighLevelencodeCodeword, generateBarcodeLogic, getChecksumMode, isIgnoredChar, validateChecksumpublic RoyalMailCBCLogicImpl(ChecksumMode mode)
mode - checksum modepublic char calcChecksum(String msg)
calcChecksum in class AbstractFourStateLogicImplmsg - message to calculate the check digit forprotected String handleChecksum(String msg)
msg - the messagepublic static String removeStartStop(String msg)
msg - the messagepublic String normalizeMessage(String msg)
normalizeMessage in class AbstractFourStateLogicImplmsg - the messageCopyright © 2003–2023. All rights reserved.