barcode4j 2.1.0

org.krysalis.barcode4j.impl.code128
Class EAN128LogicImpl

java.lang.Object
  extended by org.krysalis.barcode4j.impl.code128.EAN128LogicImpl

public class EAN128LogicImpl
extends java.lang.Object

This class is an implementation of the EAN 128 barcode.

Author:
Dietmar Bürkle, Jeremias Maerki (generateBarcodeLogic)

Constructor Summary
EAN128LogicImpl(ChecksumMode mode, java.lang.String template)
           
EAN128LogicImpl(ChecksumMode mode, java.lang.String template, char fnc1)
           
 
Method Summary
 int addAI(java.lang.String msg, int offset, EAN128AI ai)
           
 void addAIs(java.lang.String msg)
           
 void generateBarcodeLogic(ClassicBarcodeLogicHandler logic, java.lang.String msg)
          Generates the barcode logic
 char getCheckDigitMarker()
           
 java.lang.String getCode128Msg()
           
 int[] getEncodedMessage(java.lang.String msg)
          Encodes a message into an array of character set indexes.
 char getGroupSeparator()
           
 java.lang.String getHumanReadableMsg()
           
 java.lang.String getMessage()
           
 boolean isOmitBrackets()
           
 void setCheckDigitMarker(char c)
           
 void setChecksumMode(ChecksumMode mode)
           
 void setGroupSeparator(char c)
           
protected  void setMessage(java.lang.String msg)
           
 void setOmitBrackets(boolean b)
           
 void setTemplate(java.lang.String string)
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EAN128LogicImpl

public EAN128LogicImpl(ChecksumMode mode,
                       java.lang.String template,
                       char fnc1)

EAN128LogicImpl

public EAN128LogicImpl(ChecksumMode mode,
                       java.lang.String template)
Method Detail

setMessage

protected void setMessage(java.lang.String msg)

getMessage

public java.lang.String getMessage()
Returns:
the original message

getEncodedMessage

public int[] getEncodedMessage(java.lang.String msg)
Encodes a message into an array of character set indexes.

Parameters:
msg - the message to encode
Returns:
the requested array of character set indexes
See Also:
#getEncoder()

generateBarcodeLogic

public void generateBarcodeLogic(ClassicBarcodeLogicHandler logic,
                                 java.lang.String msg)
Generates the barcode logic

Parameters:
logic - the logic handler to receive the generated events
msg - the message to encode

addAIs

public void addAIs(java.lang.String msg)

addAI

public int addAI(java.lang.String msg,
                 int offset,
                 EAN128AI ai)

getCode128Msg

public java.lang.String getCode128Msg()

getHumanReadableMsg

public java.lang.String getHumanReadableMsg()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

setChecksumMode

public void setChecksumMode(ChecksumMode mode)

getGroupSeparator

public char getGroupSeparator()
Returns:

setGroupSeparator

public void setGroupSeparator(char c)
Parameters:
c -

setTemplate

public void setTemplate(java.lang.String string)
Parameters:
string -

getCheckDigitMarker

public char getCheckDigitMarker()
Returns:

setCheckDigitMarker

public void setCheckDigitMarker(char c)
Parameters:
c -

isOmitBrackets

public boolean isOmitBrackets()
Returns:

setOmitBrackets

public void setOmitBrackets(boolean b)
Parameters:
b -

barcode4j 2.1.0

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