parseInformation method

  1. @override
String parseInformation()
override

Implementation

@override
String parseInformation() {
  if (information.size != _headerSize + AI01Decoder.gtinSize + _weightSize) {
    throw NotFoundException.instance;
  }

  final buf = StringBuilder();

  encodeCompressedGtin(buf, _headerSize);
  encodeCompressedWeight(
    buf,
    _headerSize + AI01Decoder.gtinSize,
    _weightSize,
  );

  return buf.toString();
}