Class DecodedBitStreamParser


  • final class DecodedBitStreamParser
    extends java.lang.Object

    MaxiCodes can encode text or structured information as bits in one of several modes, with multiple character sets in one code. This class decodes the bits back into text.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static DecoderResult decode​(byte[] bytes, int mode)  
      private static int getBit​(int bit, byte[] bytes)  
      private static int getCountry​(byte[] bytes)  
      private static int getInt​(byte[] bytes, byte[] x)  
      private static java.lang.String getMessage​(byte[] bytes, int start, int len)  
      private static int getPostCode2​(byte[] bytes)  
      private static int getPostCode2Length​(byte[] bytes)  
      private static java.lang.String getPostCode3​(byte[] bytes)  
      private static int getServiceClass​(byte[] bytes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DecodedBitStreamParser

        private DecodedBitStreamParser()
    • Method Detail

      • getBit

        private static int getBit​(int bit,
                                  byte[] bytes)
      • getInt

        private static int getInt​(byte[] bytes,
                                  byte[] x)
      • getCountry

        private static int getCountry​(byte[] bytes)
      • getServiceClass

        private static int getServiceClass​(byte[] bytes)
      • getPostCode2Length

        private static int getPostCode2Length​(byte[] bytes)
      • getPostCode2

        private static int getPostCode2​(byte[] bytes)
      • getPostCode3

        private static java.lang.String getPostCode3​(byte[] bytes)
      • getMessage

        private static java.lang.String getMessage​(byte[] bytes,
                                                   int start,
                                                   int len)