Class GeneralAppIdDecoder
java.lang.Object
com.google.zxing.oned.rss.expanded.decoders.GeneralAppIdDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringBuilderprivate final CurrentParsingStateprivate final BitArray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringdecodeAllCodes(StringBuilder buff, int initialPosition) private DecodedChardecodeAlphanumeric(int pos) (package private) DecodedInformationdecodeGeneralPurposeField(int pos, 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 BlockParsedResultprivate DecodedInformationprivate BlockParsedResultprivate BlockParsedResult
-
Field Details
-
information
-
current
-
buffer
-
-
Constructor Details
-
GeneralAppIdDecoder
GeneralAppIdDecoder(BitArray information)
-
-
Method Details
-
decodeAllCodes
String decodeAllCodes(StringBuilder buff, int initialPosition) throws NotFoundException, FormatException - Throws:
NotFoundExceptionFormatException
-
isStillNumeric
private boolean isStillNumeric(int pos) -
decodeNumeric
- Throws:
FormatException
-
extractNumericValueFromBitArray
int extractNumericValueFromBitArray(int pos, int bits) -
extractNumericValueFromBitArray
-
decodeGeneralPurposeField
- Throws:
FormatException
-
parseBlocks
- Throws:
FormatException
-
parseNumericBlock
- Throws:
FormatException
-
parseIsoIec646Block
- Throws:
FormatException
-
parseAlphaBlock
-
isStillIsoIec646
private boolean isStillIsoIec646(int pos) -
decodeIsoIec646
- Throws:
FormatException
-
isStillAlpha
private boolean isStillAlpha(int pos) -
decodeAlphanumeric
-
isAlphaTo646ToAlphaLatch
private boolean isAlphaTo646ToAlphaLatch(int pos) -
isAlphaOr646ToNumericLatch
private boolean isAlphaOr646ToNumericLatch(int pos) -
isNumericToAlphaNumericLatch
private boolean isNumericToAlphaNumericLatch(int pos)
-