public final class Encoder extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | DEFAULT_AZTEC_LAYERS | 
| static int | DEFAULT_EC_PERCENT | 
| Modifier and Type | Method and Description | 
|---|---|
| static AztecCode | encode(byte[] data)Encodes the given binary content as an Aztec symbol | 
| static AztecCode | encode(byte[] data,
      int minECCPercent,
      int userSpecifiedLayers)Encodes the given binary content as an Aztec symbol | 
public static final int DEFAULT_EC_PERCENT
public static final int DEFAULT_AZTEC_LAYERS
public static AztecCode encode(byte[] data)
data - input data stringpublic static AztecCode encode(byte[] data, int minECCPercent, int userSpecifiedLayers)
data - input data stringminECCPercent - 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 layersCopyright © 2007–2018. All rights reserved.