Class ReedSolomonEncoder

java.lang.Object
com.itextpdf.barcodes.qrcode.ReedSolomonEncoder

final class ReedSolomonEncoder extends Object
Implements Reed-Solomon encoding, as the name implies.
  • Field Details

    • field

      private final GF256 field
    • cachedGenerators

      private final List<GF256Poly> cachedGenerators
  • Constructor Details

    • ReedSolomonEncoder

      public ReedSolomonEncoder(GF256 field)
      Creates a SolomonEncoder object based on a GF256 object. Only QR codes are supported at the moment.
      Parameters:
      field - the galois field
  • Method Details

    • buildGenerator

      private GF256Poly buildGenerator(int degree)
    • encode

      public void encode(int[] toEncode, int ecBytes)
      Encodes the provided data.
      Parameters:
      toEncode - data to encode
      ecBytes - error correction bytes