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
|
static String |
convertUPCEtoUPCA(String
Expands a UPC-E value back into its full, equivalent UPC-A code value.
|
protected int[] |
decodeEnd(BitArray
|
protected int |
decodeMiddle(BitArray
Subclasses override this to decode the portion of a barcode between the start and end guard patterns.
|
decodeRow, decodeRowdecode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, resetprotected int decodeMiddle(BitArrayrow, int[] startRange, StringBuilder result) throws NotFoundException
UPCEANReader
decodeMiddle in class
UPCEANReader
row - row of black/white values to search
startRange - start/end offset of start guard pattern
result -
StringBuilder to append decoded chars to
NotFoundException - if decoding could not complete successfully
protected int[] decodeEnd(BitArrayrow, int endStart) throws NotFoundException
NotFoundException
protected boolean checkChecksum(Strings) throws FormatException
s - string of digits to check
UPCEANReader.checkStandardUPCEANChecksum(CharSequence)
FormatException - if the string does not contain only digits