|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.krysalis.barcode4j.impl.datamatrix.DataMatrixHighLevelEncoder
public class DataMatrixHighLevelEncoder
DataMatrix ECC 200 data encoder following the algorithm described in ISO/IEC 16022:200(E) in annex S.
| Field Summary |
|---|
| Fields inherited from interface org.krysalis.barcode4j.impl.datamatrix.DataMatrixConstants |
|---|
C40_UNLATCH, ECI, FNC1, LATCH_TO_ANSIX12, LATCH_TO_BASE256, LATCH_TO_C40, LATCH_TO_EDIFACT, LATCH_TO_TEXT, MACRO_05, MACRO_05_HEADER, MACRO_06, MACRO_06_HEADER, MACRO_TRAILER, PAD, READER_PROGRAMMING, STRUCTURED_APPEND, UPPER_SHIFT, X12_UNLATCH |
| Constructor Summary | |
|---|---|
DataMatrixHighLevelEncoder()
|
|
| Method Summary | |
|---|---|
static int |
determineConsecutiveDigitCount(java.lang.String msg,
int startpos)
Determines the number of consecutive characters that are encodable using numeric compaction. |
static java.lang.String |
encodeHighLevel(java.lang.String msg)
Performs message encoding of a DataMatrix message using the algorithm described in annex P of ISO/IEC 16022:2000(E). |
static java.lang.String |
encodeHighLevel(java.lang.String msg,
SymbolShapeHint shape,
java.awt.Dimension minSize,
java.awt.Dimension maxSize)
Performs message encoding of a DataMatrix message using the algorithm described in annex P of ISO/IEC 16022:2000(E). |
static byte[] |
getBytesForMessage(java.lang.String msg)
Converts the message to a byte array using the default encoding (cp437) as defined by the specification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataMatrixHighLevelEncoder()
| Method Detail |
|---|
public static byte[] getBytesForMessage(java.lang.String msg)
msg - the message
public static java.lang.String encodeHighLevel(java.lang.String msg)
throws java.io.IOException
msg - the message
java.io.IOException - if an I/O error occurs while fetching external data
public static java.lang.String encodeHighLevel(java.lang.String msg,
SymbolShapeHint shape,
java.awt.Dimension minSize,
java.awt.Dimension maxSize)
throws java.io.IOException
msg - the messageshape - requested shape. May be SymbolShapeHint.FORCE_NONE,
SymbolShapeHint.FORCE_SQUARE or SymbolShapeHint.FORCE_RECTANGLE.minSize - the minimum symbol size constraint or null for no constraintmaxSize - the maximum symbol size constraint or null for no constraint
java.io.IOException - if an I/O error occurs while fetching external data
public static int determineConsecutiveDigitCount(java.lang.String msg,
int startpos)
msg - the messagestartpos - the start position within the message
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||