Class GeneralAppIdDecoder
- java.lang.Object
-
- com.google.zxing.oned.rss.expanded.decoders.GeneralAppIdDecoder
-
final class GeneralAppIdDecoder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuilderbufferprivate CurrentParsingStatecurrentprivate BitArrayinformation
-
Constructor Summary
Constructors Constructor Description GeneralAppIdDecoder(BitArray information)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.StringdecodeAllCodes(java.lang.StringBuilder buff, int initialPosition)private DecodedChardecodeAlphanumeric(int pos)(package private) DecodedInformationdecodeGeneralPurposeField(int pos, java.lang.String remaining)private DecodedChardecodeIsoIec646(int pos)private DecodedNumericdecodeNumeric(int pos)(package private) intextractNumericValueFromBitArray(int pos, int bits)(package private) static intextractNumericValueFromBitArray(BitArray information, int pos, int bits)private booleanisAlphaOr646ToNumericLatch(int pos)private booleanisAlphaTo646ToAlphaLatch(int pos)private booleanisNumericToAlphaNumericLatch(int pos)private booleanisStillAlpha(int pos)private booleanisStillIsoIec646(int pos)private booleanisStillNumeric(int pos)private BlockParsedResultparseAlphaBlock()private DecodedInformationparseBlocks()private BlockParsedResultparseIsoIec646Block()private BlockParsedResultparseNumericBlock()
-
-
-
Field Detail
-
information
private final BitArray information
-
current
private final CurrentParsingState current
-
buffer
private final java.lang.StringBuilder buffer
-
-
Constructor Detail
-
GeneralAppIdDecoder
GeneralAppIdDecoder(BitArray information)
-
-
Method Detail
-
decodeAllCodes
java.lang.String decodeAllCodes(java.lang.StringBuilder buff, int initialPosition) throws NotFoundException, FormatException- Throws:
NotFoundExceptionFormatException
-
isStillNumeric
private boolean isStillNumeric(int pos)
-
decodeNumeric
private DecodedNumeric decodeNumeric(int pos) throws FormatException
- Throws:
FormatException
-
extractNumericValueFromBitArray
int extractNumericValueFromBitArray(int pos, int bits)
-
extractNumericValueFromBitArray
static int extractNumericValueFromBitArray(BitArray information, int pos, int bits)
-
decodeGeneralPurposeField
DecodedInformation decodeGeneralPurposeField(int pos, java.lang.String remaining) throws FormatException
- Throws:
FormatException
-
parseBlocks
private DecodedInformation parseBlocks() throws FormatException
- Throws:
FormatException
-
parseNumericBlock
private BlockParsedResult parseNumericBlock() throws FormatException
- Throws:
FormatException
-
parseIsoIec646Block
private BlockParsedResult parseIsoIec646Block() throws FormatException
- Throws:
FormatException
-
parseAlphaBlock
private BlockParsedResult parseAlphaBlock()
-
isStillIsoIec646
private boolean isStillIsoIec646(int pos)
-
decodeIsoIec646
private DecodedChar decodeIsoIec646(int pos) throws FormatException
- Throws:
FormatException
-
isStillAlpha
private boolean isStillAlpha(int pos)
-
decodeAlphanumeric
private DecodedChar decodeAlphanumeric(int pos)
-
isAlphaTo646ToAlphaLatch
private boolean isAlphaTo646ToAlphaLatch(int pos)
-
isAlphaOr646ToNumericLatch
private boolean isAlphaOr646ToNumericLatch(int pos)
-
isNumericToAlphaNumericLatch
private boolean isNumericToAlphaNumericLatch(int pos)
-
-