Class Version.ECBlocks

java.lang.Object
com.itextpdf.barcodes.qrcode.Version.ECBlocks
Enclosing class:
Version

public static final class Version.ECBlocks extends Object
Encapsulates a set of error-correction blocks in one symbol version. Most versions will use blocks of differing sizes within one version, so, this encapsulates the parameters for each set of blocks. It also holds the number of error-correction codewords per block since it will be the same across all blocks within one version.
  • Field Details

    • ecCodewordsPerBlock

      private final int ecCodewordsPerBlock
    • ecBlocks

      private final Version.ECB[] ecBlocks
  • Constructor Details

  • Method Details

    • getECCodewordsPerBlock

      public int getECCodewordsPerBlock()
      Returns:
      The number of error-correction words per block
    • getNumBlocks

      public int getNumBlocks()
    • getTotalECCodewords

      public int getTotalECCodewords()
      Returns:
      the total number of error-correction words
    • getECBlocks

      public Version.ECB[] getECBlocks()