Class ErrorCorrection
- java.lang.Object
-
- com.google.zxing.datamatrix.encoder.ErrorCorrection
-
public final class ErrorCorrection extends java.lang.ObjectError Correction Code for ECC200.
-
-
Field Summary
Fields Modifier and Type Field Description private static int[]ALOGprivate static int[]FACTOR_SETSLookup table which factors to use for which number of error correction codewords.private static int[][]FACTORSPrecomputed polynomial factors for ECC 200.private static int[]LOGprivate static intMODULO_VALUE
-
Constructor Summary
Constructors Modifier Constructor Description privateErrorCorrection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringcreateECCBlock(java.lang.CharSequence codewords, int numECWords)static java.lang.StringencodeECC200(java.lang.String codewords, SymbolInfo symbolInfo)Creates the ECC200 error correction for an encoded message.
-
-
-
Field Detail
-
FACTOR_SETS
private static final int[] FACTOR_SETS
Lookup table which factors to use for which number of error correction codewords. See FACTORS.
-
FACTORS
private static final int[][] FACTORS
Precomputed polynomial factors for ECC 200.
-
MODULO_VALUE
private static final int MODULO_VALUE
- See Also:
- Constant Field Values
-
LOG
private static final int[] LOG
-
ALOG
private static final int[] ALOG
-
-
Method Detail
-
encodeECC200
public static java.lang.String encodeECC200(java.lang.String codewords, SymbolInfo symbolInfo)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
private static java.lang.String createECCBlock(java.lang.CharSequence codewords, int numECWords)
-
-