parseInformation method
String
parseInformation(
)
override
Implementation
@override
String parseInformation() {
if (information.size !=
_HEADER_SIZE + AI01decoder.GTIN_SIZE + _WEIGHT_SIZE + _DATE_SIZE) {
throw NotFoundException.instance;
}
final buf = StringBuilder();
encodeCompressedGtin(buf, _HEADER_SIZE);
encodeCompressedWeight(
buf,
_HEADER_SIZE + AI01decoder.GTIN_SIZE,
_WEIGHT_SIZE,
);
_encodeCompressedDate(
buf,
_HEADER_SIZE + AI01decoder.GTIN_SIZE + _WEIGHT_SIZE,
);
return buf.toString();
}