|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.impl.codabar.CodabarLogicImpl
public class CodabarLogicImpl
This class is an implementation of the Codabar barcode.
Constructor Summary | |
---|---|
CodabarLogicImpl(ChecksumMode mode)
Main constructor |
|
CodabarLogicImpl(ChecksumMode mode,
boolean displayStartStop)
Main constructor |
Method Summary | |
---|---|
protected void |
encodeChar(ClassicBarcodeLogicHandler logic,
char ch)
Encodes a character to a logic handler. |
void |
generateBarcodeLogic(ClassicBarcodeLogicHandler logic,
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 partMethod Detail |
---|
public ChecksumMode getChecksumMode()
protected static int getCharIndex(char ch)
ch
- the character to lookup
protected static boolean isValidChar(char ch)
ch
- the character to check
protected static boolean isStartStopChar(char ch)
ch
- the character to check
protected void encodeChar(ClassicBarcodeLogicHandler logic, char ch)
logic
- the logic handler to send events toch
- the character to encodepublic void generateBarcodeLogic(ClassicBarcodeLogicHandler logic, java.lang.String msg)
logic
- the logic handler to send generated events tomsg
- the message to encode
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |