Class ErrorCorrection


  • public final class ErrorCorrection
    extends java.lang.Object

    PDF417 error correction implementation.

    This example is quite useful in understanding the algorithm.

    See Also:
    ReedSolomonDecoder
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorCorrection()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int decode​(int[] received, int numECCodewords, int[] erasures)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorCorrection

        public ErrorCorrection()
    • Method Detail

      • decode

        public int decode​(int[] received,
                          int numECCodewords,
                          int[] erasures)
                   throws ChecksumException
        Parameters:
        received - received codewords
        numECCodewords - number of those codewords used for EC
        erasures - location of erasures
        Returns:
        number of errors
        Throws:
        ChecksumException - if errors cannot be corrected, maybe because of too many errors