Class Encoder



  • public final class Encoder
    extends Object
    Generates Aztec 2D barcodes.
    • Method Detail

      • encode

        public static AztecCode encode(byte[] data)
        Encodes the given binary content as an Aztec symbol
        Parameters:
        data - input data string
        Returns:
        Aztec symbol matrix with metadata
      • encode

        public static AztecCode encode(byte[] data,
                                       int minECCPercent,
                                       int userSpecifiedLayers)
        Encodes the given binary content as an Aztec symbol
        Parameters:
        data - input data string
        minECCPercent - minimal percentage of error check words (According to ISO/IEC 24778:2008, a minimum of 23% + 3 words is recommended)
        userSpecifiedLayers - if non-zero, a user-specified value for the number of layers
        Returns:
        Aztec symbol matrix with metadata