Class EAN8LogicImpl
java.lang.Object
org.krysalis.barcode4j.impl.upcean.UPCEANLogicImpl
org.krysalis.barcode4j.impl.upcean.EAN8LogicImpl
This class is an implementation of the EAN-8 barcode.
- Version:
- $Id: EAN8LogicImpl.java,v 1.2 2004-10-24 11:45:53 jmaerki Exp $
- Author:
- Jeremias Maerki
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateBarcodeLogic(ClassicBarcodeLogicHandler logic, String msg) Generates the barcode logic.static voidvalidateMessage(String msg) Validates a EAN-8 message.Methods inherited from class org.krysalis.barcode4j.impl.upcean.UPCEANLogicImpl
calcChecksum, drawCenterGuard, drawSideGuard, drawSupplemental, encodeChar, getChecksumMode, getSupplementalLength, removeSupplemental, retrieveSupplemental
-
Constructor Details
-
EAN8LogicImpl
Main constructor.- Parameters:
mode- the checksum mode
-
-
Method Details
-
validateMessage
Validates a EAN-8 message. The method throws IllegalArgumentExceptions if an invalid message is passed.- Parameters:
msg- the message to validate
-
generateBarcodeLogic
Description copied from class:UPCEANLogicImplGenerates the barcode logic.- Specified by:
generateBarcodeLogicin classUPCEANLogicImpl- Parameters:
logic- the logic handler to receive generated eventsmsg- the message to encode- See Also:
-