|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.krysalis.barcode4j.impl.fourstate.AbstractFourStateLogicImpl
org.krysalis.barcode4j.impl.fourstate.AbstractRMCBCKIXLogicImpl
org.krysalis.barcode4j.impl.fourstate.RoyalMailCBCLogicImpl
public class RoyalMailCBCLogicImpl
Implements the Royal Mail Customer Barcode (CBC).
| Constructor Summary | |
|---|---|
RoyalMailCBCLogicImpl(ChecksumMode mode)
Main constructor |
|
| Method Summary | |
|---|---|
char |
calcChecksum(java.lang.String msg)
Calculates the checksum for a message to be encoded as an one of the foru-state barcode symbologies. |
protected java.lang.String |
handleChecksum(java.lang.String msg)
Handles the checksum, either checking if the right value was specified or adding the missing checksum depending on the settings. |
java.lang.String |
normalizeMessage(java.lang.String msg)
Turns the given message into a normalize representation. |
static java.lang.String |
removeStartStop(java.lang.String msg)
Removes the start and stop characters from the message. |
| Methods inherited from class org.krysalis.barcode4j.impl.fourstate.AbstractRMCBCKIXLogicImpl |
|---|
encodeHighLevel |
| Methods inherited from class org.krysalis.barcode4j.impl.fourstate.AbstractFourStateLogicImpl |
|---|
encodeCodeword, generateBarcodeLogic, getChecksumMode, isIgnoredChar, validateChecksum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoyalMailCBCLogicImpl(ChecksumMode mode)
mode - checksum mode| Method Detail |
|---|
public char calcChecksum(java.lang.String msg)
calcChecksum in class AbstractFourStateLogicImplmsg - message to calculate the check digit for
protected java.lang.String handleChecksum(java.lang.String msg)
msg - the message
public static java.lang.String removeStartStop(java.lang.String msg)
msg - the message
public java.lang.String normalizeMessage(java.lang.String msg)
normalizeMessage in class AbstractFourStateLogicImplmsg - the message
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||