UPCEReader class

Implements decoding of the UPC-E format.

This is a great reference for UPC-E information.

@author Sean Owen

Inheritance

Constructors

UPCEReader()

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
override
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.
inherited
decodeEnd(BitArray row, int endStart) List<int>
override
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.
inherited
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

Static Methods

convertUPCEtoUPCA(String upce) String
Expands a UPC-E value back into its full, equivalent UPC-A code value.

Constants

numsysAndCheckDigitPatterns → const List<List<int>>
See {@link #L_AND_G_PATTERNS}; these values similarly represent patterns of even-odd parity encodings of digits that imply both the number system (0 or 1) used, and the check digit.