Package com.google.zxing.oned
Class UPCEReader
java.lang.Object
com.google.zxing.oned.OneDReader
com.google.zxing.oned.UPCEANReader
com.google.zxing.oned.UPCEReader
- All Implemented Interfaces:
- Reader
Implements decoding of the UPC-E format.
This is a great reference for UPC-E information.
- Author:
- Sean Owen
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanstatic StringconvertUPCEtoUPCA(String upce) Expands a UPC-E value back into its full, equivalent UPC-A code value.protected int[]protected intdecodeMiddle(BitArray row, int[] startRange, StringBuilder result) Subclasses override this to decode the portion of a barcode between the start and end guard patterns.Methods inherited from class com.google.zxing.oned.UPCEANReaderdecodeRow, decodeRowMethods inherited from class com.google.zxing.oned.OneDReaderdecode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset
- 
Constructor Details- 
UPCEReaderpublic UPCEReader()
 
- 
- 
Method Details- 
decodeMiddleprotected int decodeMiddle(BitArray row, int[] startRange, StringBuilder result) throws NotFoundException Description copied from class:UPCEANReaderSubclasses override this to decode the portion of a barcode between the start and end guard patterns.- Specified by:
- decodeMiddlein class- UPCEANReader
- Parameters:
- row- row of black/white values to search
- startRange- start/end offset of start guard pattern
- result-- StringBuilderto append decoded chars to
- Returns:
- horizontal offset of first pixel after the "middle" that was decoded
- Throws:
- NotFoundException- if decoding could not complete successfully
 
- 
decodeEnd- Throws:
- NotFoundException
 
- 
checkChecksum- Throws:
- FormatException
 
- 
convertUPCEtoUPCAExpands a UPC-E value back into its full, equivalent UPC-A code value.- Parameters:
- upce- UPC-E code as string of digits
- Returns:
- equivalent UPC-A code as string of digits
 
 
-