org.krysalis.barcode4j.impl.upcean
Class UPCALogicImpl
java.lang.Object
org.krysalis.barcode4j.impl.upcean.UPCEANLogicImpl
org.krysalis.barcode4j.impl.upcean.UPCALogicImpl
public class UPCALogicImpl
- extends UPCEANLogicImpl
This class is an implementation of the UPC-A barcode.
- Version:
- $Id: UPCALogicImpl.java,v 1.2 2004/10/24 11:45:53 jmaerki Exp $
- Author:
- Jeremias Maerki
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPCALogicImpl
public UPCALogicImpl(ChecksumMode mode)
- Main constructor
- Parameters:
mode
- the checksum mode
validateMessage
public static void validateMessage(java.lang.String msg)
- Validates a UPC-A message. The method throws IllegalArgumentExceptions
if an invalid message is passed.
- Parameters:
msg
- the message to validate
handleChecksum
public static java.lang.String handleChecksum(java.lang.String msg,
ChecksumMode mode)
- Does checksum processing according to the checksum mode.
- Parameters:
msg
- the message to processmode
- the checksum mode
- Returns:
- the possibly modified message
generateBarcodeLogic
public void generateBarcodeLogic(ClassicBarcodeLogicHandler logic,
java.lang.String msg)
- Description copied from class:
UPCEANLogicImpl
- Generates the barcode logic.
- Specified by:
generateBarcodeLogic
in class UPCEANLogicImpl
- Parameters:
logic
- the logic handler to receive generated eventsmsg
- the message to encode- See Also:
UPCEANLogicImpl
Copyright © 2000-2010 Jeremias Maerki. All rights reserved.