parseInformation method

  1. @override
String parseInformation()
override

Implementation

@override
String parseInformation() {
  if (information.size !=
      _HEADER_SIZE + AI01decoder.GTIN_SIZE + _WEIGHT_SIZE) {
    throw NotFoundException.instance;
  }

  final buf = StringBuilder();

  encodeCompressedGtin(buf, _HEADER_SIZE);
  encodeCompressedWeight(
    buf,
    _HEADER_SIZE + AI01decoder.GTIN_SIZE,
    _WEIGHT_SIZE,
  );

  return buf.toString();
}