Class ErrorCorrection

java.lang.Object
com.google.zxing.datamatrix.encoder.ErrorCorrection

public final class ErrorCorrection extends Object
Error Correction Code for ECC200.
  • Field Details

    • 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:
    • LOG

      private static final int[] LOG
    • ALOG

      private static final int[] ALOG
  • Constructor Details

    • ErrorCorrection

      private ErrorCorrection()
  • Method Details

    • encodeECC200

      public static String encodeECC200(String codewords, SymbolInfo symbolInfo)
      Creates the ECC200 error correction for an encoded message.
      Parameters:
      codewords - the codewords
      symbolInfo - information about the symbol to be encoded
      Returns:
      the codewords with interleaved error correction.
    • createECCBlock

      private static String createECCBlock(CharSequence codewords, int numECWords)