AI01393xDecoder.java (zxing-zxing-3.4.1) | : | AI01393xDecoder.java (zxing-zxing-3.5.0) | ||
---|---|---|---|---|
skipping to change at line 63 | skipping to change at line 63 | |||
encodeCompressedGtin(buf, HEADER_SIZE); | encodeCompressedGtin(buf, HEADER_SIZE); | |||
int lastAIdigit = | int lastAIdigit = | |||
this.getGeneralDecoder().extractNumericValueFromBitArray(HEADER_SIZE + G TIN_SIZE, LAST_DIGIT_SIZE); | this.getGeneralDecoder().extractNumericValueFromBitArray(HEADER_SIZE + G TIN_SIZE, LAST_DIGIT_SIZE); | |||
buf.append("(393"); | buf.append("(393"); | |||
buf.append(lastAIdigit); | buf.append(lastAIdigit); | |||
buf.append(')'); | buf.append(')'); | |||
int firstThreeDigits = this.getGeneralDecoder().extractNumericValueFromBitAr ray( | int firstThreeDigits = this.getGeneralDecoder().extractNumericValueFromBitAr ray( | |||
HEADER_SIZE + GTIN_SIZE + LAST_DIGIT_SIZE, FIRST_THREE_DIGITS_SIZE); | HEADER_SIZE + GTIN_SIZE + LAST_DIGIT_SIZE, FIRST_THREE_DIGITS_SIZE); | |||
if (firstThreeDigits / 100 == 0) { | if (firstThreeDigits / 100 == 0) { | |||
buf.append('0'); | buf.append('0'); | |||
} | } | |||
if (firstThreeDigits / 10 == 0) { | if (firstThreeDigits / 10 == 0) { | |||
buf.append('0'); | buf.append('0'); | |||
} | } | |||
buf.append(firstThreeDigits); | buf.append(firstThreeDigits); | |||
DecodedInformation generalInformation = this.getGeneralDecoder().decodeGener alPurposeField( | DecodedInformation generalInformation = this.getGeneralDecoder().decodeGener alPurposeField( | |||
HEADER_SIZE + GTIN_SIZE + LAST_DIGIT_SIZE + FIRST_THREE_DIGITS_SIZE, null) ; | HEADER_SIZE + GTIN_SIZE + LAST_DIGIT_SIZE + FIRST_THREE_DIGITS_SIZE, nul l); | |||
buf.append(generalInformation.getNewString()); | buf.append(generalInformation.getNewString()); | |||
return buf.toString(); | return buf.toString(); | |||
} | } | |||
} | } | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |