public final class HighLevelEncoder extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
determineConsecutiveDigitCount(CharSequence
Determines the number of consecutive characters that are encodable using numeric compaction.
|
static String |
encodeHighLevel(String
Performs message encoding of a DataMatrix message using the algorithm described in annex P of ISO/IEC 16022:2000(E).
|
static String |
encodeHighLevel(String
Performs message encoding of a DataMatrix message using the algorithm described in annex P of ISO/IEC 16022:2000(E).
|
public static StringencodeHighLevel(String msg)
msg - the message
public static StringencodeHighLevel(String msg, SymbolShapeHint shape, Dimension minSize, Dimension maxSize)
msg - the message
shape - requested shape. May be
SymbolShapeHint.FORCE_NONE,
SymbolShapeHint.FORCE_SQUARE or
SymbolShapeHint.FORCE_RECTANGLE.
minSize - the minimum symbol size constraint or null for no constraint
maxSize - the maximum symbol size constraint or null for no constraint
public static int determineConsecutiveDigitCount(CharSequencemsg, int startpos)
msg - the message
startpos - the start position within the message