public final class HighLevelEncoder
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static int |
determineConsecutiveDigitCount(java.lang.CharSequence 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,
Dimension minSize,
Dimension maxSize)
Performs message encoding of a DataMatrix message using the algorithm described in annex P
of ISO/IEC 16022:2000(E).
|
public static java.lang.String encodeHighLevel(java.lang.String msg)
msg
- the messagepublic static java.lang.String encodeHighLevel(java.lang.String msg, SymbolShapeHint shape, Dimension minSize, Dimension maxSize)
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 constraintpublic static int determineConsecutiveDigitCount(java.lang.CharSequence msg, int startpos)
msg
- the messagestartpos
- the start position within the message