java.lang.Object
de.vwsoft.barcodelib4j.twod.datamatrix.HighLevelEncoder
DataMatrix ECC 200 data encoder following the algorithm described in ISO/IEC 16022:200(E) in
annex S.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intdetermineConsecutiveDigitCount(CharSequence msg, int startpos) Determines the number of consecutive characters that are encodable using numeric compaction.static StringencodeHighLevel(String msg, SymbolShapeHint shape, Dimension minSize, Dimension maxSize, boolean isGS1, boolean forceC40) Performs message encoding of a DataMatrix message using the algorithm described in annex P of ISO/IEC 16022:2000(E).
-
Field Details
-
MACRO_05_HEADER
05 Macro header- See Also:
-
MACRO_06_HEADER
06 Macro header- See Also:
-
MACRO_TRAILER
Macro trailer- See Also:
-
-
Method Details
-
encodeHighLevel
public static String encodeHighLevel(String msg, SymbolShapeHint shape, Dimension minSize, Dimension maxSize, boolean isGS1, boolean forceC40) Performs message encoding of a DataMatrix message using the algorithm described in annex P of ISO/IEC 16022:2000(E).- Parameters:
msg- the messageshape- requested shape. May beSymbolShapeHint.FORCE_NONE,SymbolShapeHint.FORCE_SQUAREorSymbolShapeHint.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 encoding- Returns:
- the encoded message (the char values range from 0 to 255)
-
determineConsecutiveDigitCount
Determines the number of consecutive characters that are encodable using numeric compaction.- Parameters:
msg- the messagestartpos- the start position within the message- Returns:
- the requested character count
-