public class UPCELogicImpl extends UPCEANLogicImpl
EVEN_PARITY, LEFT_HAND_A, LEFT_HAND_B, ODD_PARITY, RIGHT_HAND| Constructor and Description |
|---|
UPCELogicImpl(ChecksumMode mode)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
compactMessage(String msg)
Compacts an UPC-A message to an UPC-E message if possible.
|
protected void |
drawUPCERightGuard(ClassicBarcodeLogicHandler logic)
Generates a UPC-E right guard.
|
static String |
expandMessage(String msg)
Expands an UPC-E message to an UPC-A message.
|
void |
generateBarcodeLogic(ClassicBarcodeLogicHandler logic,
String msg)
Generates the barcode logic.
|
static void |
validateMessage(String msg)
Validates an UPC-E message.
|
calcChecksum, drawCenterGuard, drawSideGuard, drawSupplemental, encodeChar, getChecksumMode, getSupplementalLength, removeSupplemental, retrieveSupplementalpublic UPCELogicImpl(ChecksumMode mode)
mode - the checksum modepublic static String compactMessage(String msg)
msg - an UPC-A messagepublic static String expandMessage(String msg)
msg - an UPC-E message (7 or 8 characters)public static void validateMessage(String msg)
msg - the message to validateprotected void drawUPCERightGuard(ClassicBarcodeLogicHandler logic)
logic - the logic handler to receive generated eventspublic 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.