ErrorCorrection (ZXing 3.5.2 API)
Description: declaration: package: com.google.zxing.pdf417.decoder.ec, class: ErrorCorrection

Package 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
  Description
  `ErrorCorrection()`

- ## Method Summary

  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 Details

  - ### ErrorCorrection

    public ErrorCorrection()

- ## Method Details

  - ### 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