public class CodabarEncoder extends Object implements BarcodeEncoder
| Modifier and Type | Field and Description |
|---|---|
protected BarSet[] |
CODES_WIDTH |
protected BarSet |
INTER_CHAR |
static int |
START_CHAR_A |
static int |
START_CHAR_B |
static int |
START_CHAR_C |
static int |
START_CHAR_D |
static int |
STOP_CHAR_ASTERISC |
static int |
STOP_CHAR_E |
static int |
STOP_CHAR_N |
static int |
STOP_CHAR_T |
| Modifier and Type | Method and Description |
|---|---|
String |
computeCheckSum(String texto) |
BarSet[] |
encode(String texto) |
static CodabarEncoder |
getInstance() |
int |
getStartChar() |
int |
getStopChar() |
void |
setStartChar(int startChar) |
void |
setStopChar(int stopChar) |
String |
toString() |
protected final BarSet[] CODES_WIDTH
protected BarSet INTER_CHAR
public static final int START_CHAR_A
public static final int START_CHAR_B
public static final int START_CHAR_C
public static final int START_CHAR_D
public static final int STOP_CHAR_T
public static final int STOP_CHAR_N
public static final int STOP_CHAR_ASTERISC
public static final int STOP_CHAR_E
public static CodabarEncoder getInstance()
public BarSet[] encode(String texto) throws InvalidAtributeException
encode in interface BarcodeEncoderInvalidAtributeExceptionpublic String computeCheckSum(String texto) throws InvalidAtributeException
computeCheckSum in interface BarcodeEncoderInvalidAtributeExceptionpublic int getStartChar()
public void setStartChar(int startChar)
public int getStopChar()
public void setStopChar(int stopChar)
Copyright © 2016 jufeng. All rights reserved.