Package com.google.zxing.aztec.encoder
Class HighLevelEncoder
java.lang.Object
com.google.zxing.aztec.encoder.HighLevelEncoder
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
ConstructorsConstructorDescriptionHighLevelEncoder
(byte[] text) HighLevelEncoder
(byte[] text, Charset charset) -
Method Summary
-
Constructor Details
-
HighLevelEncoder
public HighLevelEncoder(byte[] text) -
HighLevelEncoder
-
-
Method Details
-
encode
- Returns:
- text represented by this encoder encoded as a
BitArray
-