org.krysalis.barcode4j.impl.code128
Class EAN128LogicImpl
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EAN128LogicImpl
public EAN128LogicImpl(ChecksumMode mode,
java.lang.String template,
char fnc1)
EAN128LogicImpl
public EAN128LogicImpl(ChecksumMode mode,
java.lang.String template)
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 eventsmsg
- 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
-
Copyright © 2000-2010 Jeremias Maerki. All rights reserved.