public final class UPCEReader extends UPCEANReader
Implements decoding of the UPC-E format.
This is a great reference for UPC-E information.
Constructor and Description |
---|
UPCEReader() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkChecksum(String s) |
static String |
convertUPCEtoUPCA(String upce)
Expands a UPC-E value back into its full, equivalent UPC-A code value.
|
protected int[] |
decodeEnd(BitArray row,
int endStart) |
protected int |
decodeMiddle(BitArray row,
int[] startRange,
StringBuilder result)
Subclasses override this to decode the portion of a barcode between the start
and end guard patterns.
|
decodeRow, decodeRow
decode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset
protected int decodeMiddle(BitArray row, int[] startRange, StringBuilder result) throws NotFoundException
UPCEANReader
decodeMiddle
in class UPCEANReader
row
- row of black/white values to searchstartRange
- start/end offset of start guard patternresult
- StringBuilder
to append decoded chars toNotFoundException
- if decoding could not complete successfullyprotected int[] decodeEnd(BitArray row, int endStart) throws NotFoundException
NotFoundException
protected boolean checkChecksum(String s) throws FormatException
s
- string of digits to checkUPCEANReader.checkStandardUPCEANChecksum(CharSequence)
FormatException
- if the string does not contain only digitsCopyright © 2007–2024. All rights reserved.