Package com.google.zxing.oned
Class EAN8Reader
- java.lang.Object
-
- com.google.zxing.oned.OneDReader
-
- com.google.zxing.oned.UPCEANReader
-
- com.google.zxing.oned.EAN8Reader
-
- All Implemented Interfaces:
Reader
public final class EAN8Reader extends UPCEANReader
Implements decoding of the EAN-8 format.
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
decodeMiddleCounters
-
Fields inherited from class com.google.zxing.oned.UPCEANReader
END_PATTERN, L_AND_G_PATTERNS, L_PATTERNS, MIDDLE_PATTERN, START_END_PATTERN
-
-
Constructor Summary
Constructors Constructor Description EAN8Reader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.(package private) BarcodeFormat
getBarcodeFormat()
Get the format of this decoder.-
Methods inherited from class com.google.zxing.oned.UPCEANReader
checkChecksum, checkStandardUPCEANChecksum, decodeDigit, decodeEnd, decodeRow, decodeRow, findGuardPattern, findStartGuardPattern, getStandardUPCEANChecksum
-
Methods inherited from class com.google.zxing.oned.OneDReader
decode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset
-
-
-
-
Method Detail
-
decodeMiddle
protected int decodeMiddle(BitArray row, int[] startRange, java.lang.StringBuilder result) throws NotFoundException
Description copied from class:UPCEANReader
Subclasses override this to decode the portion of a barcode between the start and end guard patterns.- Specified by:
decodeMiddle
in classUPCEANReader
- Parameters:
row
- row of black/white values to searchstartRange
- start/end offset of start guard patternresult
-StringBuilder
to append decoded chars to- Returns:
- horizontal offset of first pixel after the "middle" that was decoded
- Throws:
NotFoundException
- if decoding could not complete successfully
-
getBarcodeFormat
BarcodeFormat getBarcodeFormat()
Description copied from class:UPCEANReader
Get the format of this decoder.- Specified by:
getBarcodeFormat
in classUPCEANReader
- Returns:
- The 1D format.
-
-