decodeRow method

  1. @override
Result decodeRow(
  1. int rowNumber,
  2. BitArray row,
  3. DecodeHint? hints, [
  4. List<int>? startGuardRange,
])
override

Like {@link #decodeRow(int, BitArray, Map)}, but allows caller to inform method about where the UPC/EAN start pattern is found. This allows this to be computed once and reused across many implementations.

@param rowNumber row index into the image @param row encoding of the row of the barcode image @param startGuardRange start/end column where the opening start pattern was found @param hints optional hints that influence decoding @return Result encapsulating the result of decoding a barcode in the row @throws NotFoundException if no potential barcode is found @throws ChecksumException if a potential barcode is found but does not pass its checksum @throws FormatException if a potential barcode is found but format is invalid

Implementation

@override
Result decodeRow(
  int rowNumber,
  BitArray row,
  DecodeHint? hints, [
  List<int>? startGuardRange,
]) {
  return _maybeReturnResult(
    _ean13Reader.decodeRow(rowNumber, row, hints, startGuardRange),
  );
}