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.StringBuilder
buffer
private CurrentParsingState
current
private BitArray
information
-
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.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) 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
parseAlphaBlock()
private DecodedInformation
parseBlocks()
private BlockParsedResult
parseIsoIec646Block()
private BlockParsedResult
parseNumericBlock()
-
-
-
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:
NotFoundException
FormatException
-
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)
-
-