HighLevelEncoder

DataMatrix ECC 200 data encoder following the algorithm described in ISO/IEC 16022:200(E) in annex S.

Properties

Link copied to clipboard
const val ASCII_ENCODATION: Int = 0
Link copied to clipboard
const val BASE256_ENCODATION: Int = 5
Link copied to clipboard
const val C40_ENCODATION: Int = 1
Link copied to clipboard
const val C40_UNLATCH: Char = '\u00FE'

Unlatch from C40 encodation

Link copied to clipboard
const val EDIFACT_ENCODATION: Int = 4
Link copied to clipboard
const val LATCH_TO_ANSIX12: Char = '\u00EE'

mode latch to ANSI X.12 encodation mode

Link copied to clipboard
const val LATCH_TO_BASE256: Char = '\u00E7'

mode latch to Base 256 encodation mode

Link copied to clipboard
const val LATCH_TO_C40: Char = '\u00E6'

mode latch to C40 encodation mode

Link copied to clipboard
const val LATCH_TO_EDIFACT: Char = '\u00F0'

mode latch to EDIFACT encodation mode

Link copied to clipboard
const val LATCH_TO_TEXT: Char = '\u00EF'

mode latch to Text encodation mode

Link copied to clipboard

05 Macro header

Link copied to clipboard

06 Macro header

Link copied to clipboard

Macro trailer

Link copied to clipboard
const val TEXT_ENCODATION: Int = 2
Link copied to clipboard
const val UPPER_SHIFT: Char = '\u00EB'

Upper Shift

Link copied to clipboard
const val X12_ENCODATION: Int = 3
Link copied to clipboard
const val X12_UNLATCH: Char = '\u00FE'

Unlatch from X12 encodation

Functions

Link copied to clipboard

Determines the number of consecutive characters that are encodable using numeric compaction.

Link copied to clipboard
fun encodeHighLevel(msg: String, shape: SymbolShapeHint, minSize: Dimension?, maxSize: Dimension?): String
fun encodeHighLevel(msg: String, shape: SymbolShapeHint, minSize: Dimension?, maxSize: Dimension?, forceC40: Boolean): String

Performs message encoding of a DataMatrix message using the algorithm described in annex P of ISO/IEC 16022:2000(E).

Link copied to clipboard
Link copied to clipboard
fun isDigit(ch: Char): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun lookAheadTest(msg: CharSequence, startpos: Int, currentMode: Int): Int
Link copied to clipboard
fun lookAheadTestIntern(msg: CharSequence, startpos: Int, currentMode: Int): Int