Class ErrorCorrection
java.lang.Object
com.google.zxing.datamatrix.encoder.ErrorCorrection
Error Correction Code for ECC200.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]
private static final int[]
Lookup table which factors to use for which number of error correction codewords.private static final int[][]
Precomputed polynomial factors for ECC 200.private static final int[]
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
createECCBlock
(CharSequence codewords, int numECWords) static String
encodeECC200
(String codewords, SymbolInfo symbolInfo) Creates the ECC200 error correction for an encoded message.
-
Field Details
-
FACTOR_SETS
private static final int[] FACTOR_SETSLookup table which factors to use for which number of error correction codewords. See FACTORS. -
FACTORS
private static final int[][] FACTORSPrecomputed polynomial factors for ECC 200. -
MODULO_VALUE
private static final int MODULO_VALUE- See Also:
-
LOG
private static final int[] LOG -
ALOG
private static final int[] ALOG
-
-
Constructor Details
-
ErrorCorrection
private ErrorCorrection()
-
-
Method Details
-
encodeECC200
Creates the ECC200 error correction for an encoded message.- Parameters:
codewords
- the codewordssymbolInfo
- information about the symbol to be encoded- Returns:
- the codewords with interleaved error correction.
-
createECCBlock
-