UPCAReader class

Implements decoding of the UPC-A format.

@author dswitkin@google.com (Daniel Switkin) @author Sean Owen

Inheritance

Constructors

UPCAReader()

Properties

barcodeFormat BarcodeFormat
Get the format of this decoder.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkChecksum(String s) bool
@param s string of digits to check @return {@link #checkStandardUPCEANChecksum(CharSequence)} @throws FormatException if the string does not contain only digits
inherited
decode(BinaryBitmap image, [DecodeHint? hints]) Result
Locates and decodes a barcode in some format within an image. This method also accepts hints, each possibly associated to some data, which may help the implementation decode.
override
decodeEnd(BitArray row, int endStart) List<int>
inherited
decodeMiddle(BitArray row, List<int> startRange, StringBuilder result) int
Subclasses override this to decode the portion of a barcode between the start and end guard patterns.
override
decodeRow(int rowNumber, BitArray row, DecodeHint? hints, [List<int>? startGuardRange]) Result
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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets any internal state the implementation has after a decode, to prepare it for reuse.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited