|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.impl.upcean.UPCEANLogicImpl org.krysalis.barcode4j.impl.upcean.UPCELogicImpl
public class UPCELogicImpl
This class is an implementation of the UPC-E barcode.
Field Summary |
---|
Fields inherited from class org.krysalis.barcode4j.impl.upcean.UPCEANLogicImpl |
---|
EVEN_PARITY, LEFT_HAND_A, LEFT_HAND_B, ODD_PARITY, RIGHT_HAND |
Constructor Summary | |
---|---|
UPCELogicImpl(ChecksumMode mode)
Main constructor |
Method Summary | |
---|---|
static java.lang.String |
compactMessage(java.lang.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 java.lang.String |
expandMessage(java.lang.String msg)
Expands an UPC-E message to an UPC-A message. |
void |
generateBarcodeLogic(ClassicBarcodeLogicHandler logic,
java.lang.String msg)
Generates the barcode logic. |
static void |
validateMessage(java.lang.String msg)
Validates an UPC-E message. |
Methods inherited from class org.krysalis.barcode4j.impl.upcean.UPCEANLogicImpl |
---|
calcChecksum, drawCenterGuard, drawSideGuard, drawSupplemental, encodeChar, getChecksumMode, getSupplementalLength, removeSupplemental, retrieveSupplemental |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UPCELogicImpl(ChecksumMode mode)
mode
- the checksum modeMethod Detail |
---|
public static java.lang.String compactMessage(java.lang.String msg)
msg
- an UPC-A message
public static java.lang.String expandMessage(java.lang.String msg)
msg
- an UPC-E message (7 or 8 characters)
public static void validateMessage(java.lang.String msg)
msg
- the message to validateprotected void drawUPCERightGuard(ClassicBarcodeLogicHandler logic)
logic
- the logic handler to receive generated eventspublic void generateBarcodeLogic(ClassicBarcodeLogicHandler logic, java.lang.String msg)
UPCEANLogicImpl
generateBarcodeLogic
in class UPCEANLogicImpl
logic
- the logic handler to receive generated eventsmsg
- the message to encodeUPCEANLogicImpl
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |