public final class UPCEReader extends UPCEANReader
Implements decoding of the UPC-E format.
This is a great reference for UPC-E information.
| 构造器和说明 |
|---|
UPCEReader() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
checkChecksum(java.lang.String s) |
static java.lang.String |
convertUPCEtoUPCA(java.lang.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,
java.lang.StringBuilder result)
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(BitArray row, int[] startRange, java.lang.StringBuilder result) throws NotFoundException
UPCEANReaderdecodeMiddle 在类中 UPCEANReaderrow - 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
protected boolean checkChecksum(java.lang.String s)
throws FormatException
s - string of digits to checkUPCEANReader.checkStandardUPCEANChecksum(CharSequence)FormatException - if the string does not contain only digitspublic static java.lang.String convertUPCEtoUPCA(java.lang.String upce)
upce - UPC-E code as string of digits