public final class HighLevelEncoder extends Object
Modifier and Type | Method and Description |
---|---|
static int |
determineConsecutiveDigitCount(CharSequence msg,
int startpos)
Determines the number of consecutive characters that are encodable using numeric compaction.
|
static String |
encodeHighLevel(String msg)
Performs message encoding of a DataMatrix message using the algorithm described in annex P
of ISO/IEC 16022:2000(E).
|
static String |
encodeHighLevel(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).
|
static String |
encodeHighLevel(String msg,
SymbolShapeHint shape,
Dimension minSize,
Dimension maxSize,
boolean forceC40)
Performs message encoding of a DataMatrix message using the algorithm described in annex P
of ISO/IEC 16022:2000(E).
|
public static String encodeHighLevel(String msg)
msg
- the messagepublic static String encodeHighLevel(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 String encodeHighLevel(String msg, SymbolShapeHint shape, Dimension minSize, Dimension maxSize, boolean forceC40)
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 constraintforceC40
- enforce C40 encodingpublic static int determineConsecutiveDigitCount(CharSequence msg, int startpos)
msg
- the messagestartpos
- the start position within the messageCopyright © 2007–2024. All rights reserved.