HighLevelEncoder (ZXing 3.5.2 API)
Description: declaration: package: com.google.zxing.aztec.encoder, class: HighLevelEncoder

Package com.google.zxing.aztec.encoder

# 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 Summary

  Constructors
  Constructor
  Description
  `HighLevelEncoder(byte[] text)`
  `HighLevelEncoder(byte[] text, Charset charset)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BitArray`
  `encode()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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`