Class AI013x0x1xDecoder
- java.lang.Object
-
- com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder
-
- com.google.zxing.oned.rss.expanded.decoders.AI01decoder
-
- com.google.zxing.oned.rss.expanded.decoders.AI01weightDecoder
-
- com.google.zxing.oned.rss.expanded.decoders.AI013x0x1xDecoder
-
final class AI013x0x1xDecoder extends AI01weightDecoder
-
-
Field Summary
Fields Modifier and Type Field Description private static intDATE_SIZEprivate java.lang.StringdateCodeprivate java.lang.StringfirstAIdigitsprivate static intHEADER_SIZEprivate static intWEIGHT_SIZE-
Fields inherited from class com.google.zxing.oned.rss.expanded.decoders.AI01decoder
GTIN_SIZE
-
-
Constructor Summary
Constructors Constructor Description AI013x0x1xDecoder(BitArray information, java.lang.String firstAIdigits, java.lang.String dateCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddWeightCode(java.lang.StringBuilder buf, int weight)protected intcheckWeight(int weight)private voidencodeCompressedDate(java.lang.StringBuilder buf, int currentPos)java.lang.StringparseInformation()-
Methods inherited from class com.google.zxing.oned.rss.expanded.decoders.AI01weightDecoder
encodeCompressedWeight
-
Methods inherited from class com.google.zxing.oned.rss.expanded.decoders.AI01decoder
encodeCompressedGtin, encodeCompressedGtinWithoutAI
-
Methods inherited from class com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder
createDecoder, getGeneralDecoder, getInformation
-
-
-
-
Field Detail
-
HEADER_SIZE
private static final int HEADER_SIZE
- See Also:
- Constant Field Values
-
WEIGHT_SIZE
private static final int WEIGHT_SIZE
- See Also:
- Constant Field Values
-
DATE_SIZE
private static final int DATE_SIZE
- See Also:
- Constant Field Values
-
dateCode
private final java.lang.String dateCode
-
firstAIdigits
private final java.lang.String firstAIdigits
-
-
Constructor Detail
-
AI013x0x1xDecoder
AI013x0x1xDecoder(BitArray information, java.lang.String firstAIdigits, java.lang.String dateCode)
-
-
Method Detail
-
parseInformation
public java.lang.String parseInformation() throws NotFoundException- Specified by:
parseInformationin classAbstractExpandedDecoder- Throws:
NotFoundException
-
encodeCompressedDate
private void encodeCompressedDate(java.lang.StringBuilder buf, int currentPos)
-
addWeightCode
protected void addWeightCode(java.lang.StringBuilder buf, int weight)- Specified by:
addWeightCodein classAI01weightDecoder
-
checkWeight
protected int checkWeight(int weight)
- Specified by:
checkWeightin classAI01weightDecoder
-
-