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 int
DATE_SIZE
private java.lang.String
dateCode
private java.lang.String
firstAIdigits
private static int
HEADER_SIZE
private static int
WEIGHT_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 void
addWeightCode(java.lang.StringBuilder buf, int weight)
protected int
checkWeight(int weight)
private void
encodeCompressedDate(java.lang.StringBuilder buf, int currentPos)
java.lang.String
parseInformation()
-
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:
parseInformation
in 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:
addWeightCode
in classAI01weightDecoder
-
checkWeight
protected int checkWeight(int weight)
- Specified by:
checkWeight
in classAI01weightDecoder
-
-