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.
Modifier and Type | Field and Description |
---|---|
private static byte[] |
COUNTRY_BYTES |
private static char |
ECI |
private static char |
FS |
private static char |
GS |
private static char |
LATCHA |
private static char |
LATCHB |
private static char |
LOCK |
private static char |
NS |
private static char |
PAD |
private static byte[] |
POSTCODE_2_BYTES |
private static byte[] |
POSTCODE_2_LENGTH_BYTES |
private static byte[][] |
POSTCODE_3_BYTES |
private static char |
RS |
private static byte[] |
SERVICE_CLASS_BYTES |
private static java.lang.String[] |
SETS |
private static char |
SHIFTA |
private static char |
SHIFTB |
private static char |
SHIFTC |
private static char |
SHIFTD |
private static char |
SHIFTE |
private static char |
THREESHIFTA |
private static char |
TWOSHIFTA |
Modifier | Constructor and Description |
---|---|
private |
DecodedBitStreamParser() |
Modifier and Type | Method and 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) |
private static final char SHIFTA
private static final char SHIFTB
private static final char SHIFTC
private static final char SHIFTD
private static final char SHIFTE
private static final char TWOSHIFTA
private static final char THREESHIFTA
private static final char LATCHA
private static final char LATCHB
private static final char LOCK
private static final char ECI
private static final char NS
private static final char PAD
private static final char FS
private static final char GS
private static final char RS
private static final byte[] COUNTRY_BYTES
private static final byte[] SERVICE_CLASS_BYTES
private static final byte[] POSTCODE_2_LENGTH_BYTES
private static final byte[] POSTCODE_2_BYTES
private static final byte[][] POSTCODE_3_BYTES
private static final java.lang.String[] SETS
static DecoderResult decode(byte[] bytes, int mode) throws FormatException
FormatException
private static int getBit(int bit, byte[] bytes)
private static int getInt(byte[] bytes, byte[] x)
private static int getCountry(byte[] bytes)
private static int getServiceClass(byte[] bytes)
private static int getPostCode2Length(byte[] bytes)
private static int getPostCode2(byte[] bytes)
private static java.lang.String getPostCode3(byte[] bytes)
private static java.lang.String getMessage(byte[] bytes, int start, int len)