public class Standard2of5Encoder extends Object implements BarcodeEncoder
| Modifier and Type | Field and Description |
|---|---|
protected BarSet[] |
CODES_WIDTH |
protected BarSet |
INTER_CHAR |
| Modifier | Constructor and Description |
|---|---|
protected |
Standard2of5Encoder() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
charToInt(char val) |
String |
computeCheckSum(String text) |
BarSet[] |
encode(String text) |
static Standard2of5Encoder |
getInstance() |
String |
toString() |
protected final BarSet[] CODES_WIDTH
protected BarSet INTER_CHAR
public static Standard2of5Encoder getInstance()
public BarSet[] encode(String text) throws InvalidAtributeException
encode in interface BarcodeEncoderInvalidAtributeExceptionpublic String computeCheckSum(String text) throws InvalidAtributeException
computeCheckSum in interface BarcodeEncoderInvalidAtributeExceptionprotected static int charToInt(char val)
Copyright © 2016 jufeng. All rights reserved.