public class CodabarLogicImpl extends Object
| Constructor and Description |
|---|
CodabarLogicImpl(ChecksumMode mode)
Main constructor
|
CodabarLogicImpl(ChecksumMode mode,
boolean displayStartStop)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
encodeChar(ClassicBarcodeLogicHandler logic,
char ch)
Encodes a character to a logic handler.
|
void |
generateBarcodeLogic(ClassicBarcodeLogicHandler logic,
String msg)
Generates the barcode logic.
|
protected static int |
getCharIndex(char ch)
Returns the index of a character within the character set.
|
ChecksumMode |
getChecksumMode()
Returns the checksum mode.
|
protected static boolean |
isStartStopChar(char ch)
Determines whether a character is on of the start/stop characters.
|
protected static boolean |
isValidChar(char ch)
Determines whether a character is a valid message character.
|
public CodabarLogicImpl(ChecksumMode mode)
mode - Determines how checksums are to be treated.public CodabarLogicImpl(ChecksumMode mode, boolean displayStartStop)
mode - Determines how checksums are to be treated.displayStartStop - enables or disables suppressing the start/stop characters from
the human-readable partpublic ChecksumMode getChecksumMode()
protected static int getCharIndex(char ch)
ch - the character to lookupprotected static boolean isValidChar(char ch)
ch - the character to checkprotected static boolean isStartStopChar(char ch)
ch - the character to checkprotected void encodeChar(ClassicBarcodeLogicHandler logic, char ch)
logic - the logic handler to send events toch - the character to encodepublic void generateBarcodeLogic(ClassicBarcodeLogicHandler logic, String msg)
logic - the logic handler to send generated events tomsg - the message to encodeCopyright © 2003–2023. All rights reserved.