barcode4j 2.1.0

org.krysalis.barcode4j.impl.upcean
Class EAN13LogicImpl

java.lang.Object
  extended by org.krysalis.barcode4j.impl.upcean.UPCEANLogicImpl
      extended by org.krysalis.barcode4j.impl.upcean.EAN13LogicImpl

public class EAN13LogicImpl
extends UPCEANLogicImpl

This class is an implementation of the EAN-13 barcode.

Version:
$Id: EAN13LogicImpl.java,v 1.3 2009/07/03 06:23:49 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
EAN13LogicImpl(ChecksumMode mode)
          Main constructor
 
Method Summary
 void generateBarcodeLogic(ClassicBarcodeLogicHandler logic, java.lang.String msg)
          Generates the barcode logic.
static void validateMessage(java.lang.String msg)
          Validates a EAN-13 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

EAN13LogicImpl

public EAN13LogicImpl(ChecksumMode mode)
Main constructor

Parameters:
mode - the checksum mode
Method Detail

validateMessage

public static void validateMessage(java.lang.String msg)
Validates a EAN-13 message. The method throws IllegalArgumentExceptions if an invalid message is passed.

Parameters:
msg - the message to validate

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 events
msg - the message to encode
See Also:
UPCEANLogicImpl

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.