final class GeneralAppIdDecoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.StringBuilder |
buffer |
private CurrentParsingState |
current |
private BitArray |
information |
Constructor and Description |
---|
GeneralAppIdDecoder(BitArray information) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
decodeAllCodes(java.lang.StringBuilder buff,
int initialPosition) |
private DecodedChar |
decodeAlphanumeric(int pos) |
(package private) DecodedInformation |
decodeGeneralPurposeField(int pos,
java.lang.String remaining) |
private DecodedChar |
decodeIsoIec646(int pos) |
private DecodedNumeric |
decodeNumeric(int pos) |
(package private) static int |
extractNumericValueFromBitArray(BitArray information,
int pos,
int bits) |
(package private) int |
extractNumericValueFromBitArray(int pos,
int bits) |
private boolean |
isAlphaOr646ToNumericLatch(int pos) |
private boolean |
isAlphaTo646ToAlphaLatch(int pos) |
private boolean |
isNumericToAlphaNumericLatch(int pos) |
private boolean |
isStillAlpha(int pos) |
private boolean |
isStillIsoIec646(int pos) |
private boolean |
isStillNumeric(int pos) |
private BlockParsedResult |
parseAlphaBlock() |
private DecodedInformation |
parseBlocks() |
private BlockParsedResult |
parseIsoIec646Block() |
private BlockParsedResult |
parseNumericBlock() |
private final BitArray information
private final CurrentParsingState current
private final java.lang.StringBuilder buffer
GeneralAppIdDecoder(BitArray information)
java.lang.String decodeAllCodes(java.lang.StringBuilder buff, int initialPosition) throws NotFoundException, FormatException
NotFoundException
FormatException
private boolean isStillNumeric(int pos)
private DecodedNumeric decodeNumeric(int pos) throws FormatException
FormatException
int extractNumericValueFromBitArray(int pos, int bits)
static int extractNumericValueFromBitArray(BitArray information, int pos, int bits)
DecodedInformation decodeGeneralPurposeField(int pos, java.lang.String remaining) throws FormatException
FormatException
private DecodedInformation parseBlocks() throws FormatException
FormatException
private BlockParsedResult parseNumericBlock() throws FormatException
FormatException
private BlockParsedResult parseIsoIec646Block() throws FormatException
FormatException
private BlockParsedResult parseAlphaBlock()
private boolean isStillIsoIec646(int pos)
private DecodedChar decodeIsoIec646(int pos) throws FormatException
FormatException
private boolean isStillAlpha(int pos)
private DecodedChar decodeAlphanumeric(int pos)
private boolean isAlphaTo646ToAlphaLatch(int pos)
private boolean isAlphaOr646ToNumericLatch(int pos)
private boolean isNumericToAlphaNumericLatch(int pos)