parseInformation method

  1. @override
String parseInformation()
override

Implementation

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

  final buf = StringBuilder();

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

  return buf.toString();
}