ErrorCorrection (ZXing 3.4.0 API)

com.google.zxing.pdf417.decoder.ec

## Class ErrorCorrection

- java.lang.Object
- - com.google.zxing.pdf417.decoder.ec.ErrorCorrection

-     public final class ErrorCorrection
      extends Object

  PDF417 error correction implementation.

  This example is quite useful in understanding the algorithm.

  Author:
    Sean Owen
  See Also:
    `ReedSolomonDecoder`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ErrorCorrection()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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

Copyright © 2007–2019. All rights reserved.