Class PDF417Common


  • public final class PDF417Common
    extends java.lang.Object
    • Field Detail

      • MAX_CODEWORDS_IN_BARCODE

        public static final int MAX_CODEWORDS_IN_BARCODE
        See Also:
        Constant Field Values
      • MODULES_IN_STOP_PATTERN

        public static final int MODULES_IN_STOP_PATTERN
        See Also:
        Constant Field Values
      • EMPTY_INT_ARRAY

        private static final int[] EMPTY_INT_ARRAY
      • SYMBOL_TABLE

        public static final int[] SYMBOL_TABLE
        The sorted table of all possible symbols. Extracted from the PDF417 specification. The index of a symbol in this table corresponds to the index into the codeword table.
      • CODEWORD_TABLE

        private static final int[] CODEWORD_TABLE
        This table contains to codewords for all symbols.
    • Constructor Detail

      • PDF417Common

        private PDF417Common()
    • Method Detail

      • getBitCountSum

        @Deprecated
        public static int getBitCountSum​(int[] moduleBitCount)
        Deprecated.
        Parameters:
        moduleBitCount - values to sum
        Returns:
        sum of values
      • toIntArray

        public static int[] toIntArray​(java.util.Collection<java.lang.Integer> list)
      • getCodeword

        public static int getCodeword​(int symbol)
        Parameters:
        symbol - encoded symbol to translate to a codeword
        Returns:
        the codeword corresponding to the symbol.