public class UPCALogicImpl extends UPCEANLogicImpl
EVEN_PARITY, LEFT_HAND_A, LEFT_HAND_B, ODD_PARITY, RIGHT_HAND| Constructor and Description |
|---|
UPCALogicImpl(ChecksumMode mode)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateBarcodeLogic(ClassicBarcodeLogicHandler logic,
String msg)
Generates the barcode logic.
|
static String |
handleChecksum(String msg,
ChecksumMode mode)
Does checksum processing according to the checksum mode.
|
static void |
validateMessage(String msg)
Validates a UPC-A message.
|
calcChecksum, drawCenterGuard, drawSideGuard, drawSupplemental, encodeChar, getChecksumMode, getSupplementalLength, removeSupplemental, retrieveSupplementalpublic UPCALogicImpl(ChecksumMode mode)
mode - the checksum modepublic static void validateMessage(String msg)
msg - the message to validatepublic static String handleChecksum(String msg, ChecksumMode mode)
msg - the message to processmode - the checksum modepublic void generateBarcodeLogic(ClassicBarcodeLogicHandler logic, String msg)
UPCEANLogicImplgenerateBarcodeLogic in class UPCEANLogicImpllogic - the logic handler to receive generated eventsmsg - the message to encodeUPCEANLogicImplCopyright © 2003–2023. All rights reserved.