Class HighLevelEncoder


  • public final class HighLevelEncoder
    extends java.lang.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.
    • Constructor Summary

      Constructors 
      Constructor Description
      HighLevelEncoder​(byte[] text)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • HighLevelEncoder

        public HighLevelEncoder​(byte[] text)
    • Method Detail

      • encode

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