Class HighLevelEncoder

java.lang.Object
com.google.zxing.aztec.encoder.HighLevelEncoder

public final class HighLevelEncoder extends Object
This produces nearly optimal encodings of text into the first-level of encoding used by Aztec code. It uses a dynamic algorithm. For each prefix of the string, it determines a set of encodings that could lead to this prefix. We repeatedly add a character and generate a new set of optimal encodings until we have read through the entire input.
Author:
Frank Yellin, Rustam Abdullaev
  • Constructor Details

    • HighLevelEncoder

      public HighLevelEncoder(byte[] text)
    • HighLevelEncoder

      public HighLevelEncoder(byte[] text, Charset charset)
  • Method Details

    • encode

      public BitArray encode()
      Returns:
      text represented by this encoder encoded as a BitArray