Class GeneralAppIdDecoder
java.lang.Object
com.google.zxing.oned.rss.expanded.decoders.GeneralAppIdDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringBuilder
private final CurrentParsingState
private final BitArray
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) String
decodeAllCodes
(StringBuilder buff, int initialPosition) private DecodedChar
decodeAlphanumeric
(int pos) (package private) DecodedInformation
decodeGeneralPurposeField
(int pos, String remaining) private DecodedChar
decodeIsoIec646
(int pos) private DecodedNumeric
decodeNumeric
(int pos) (package private) int
extractNumericValueFromBitArray
(int pos, int bits) (package private) static int
extractNumericValueFromBitArray
(BitArray information, 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
private DecodedInformation
private BlockParsedResult
private 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:
NotFoundException
FormatException
-
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)
-