Class EAN8Reader
java.lang.Object
com.google.zxing.oned.OneDReader
com.google.zxing.oned.UPCEANReader
com.google.zxing.oned.EAN8Reader
- All Implemented Interfaces:
Reader
Implements decoding of the EAN-8 format.
-
Field Summary
FieldsFields inherited from class UPCEANReader
END_PATTERN, L_AND_G_PATTERNS, L_PATTERNS, MIDDLE_PATTERN, START_END_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intdecodeMiddle(BitArray row, int[] startRange, StringBuilder result) Subclasses override this to decode the portion of a barcode between the start and end guard patterns.(package private) BarcodeFormatGet the format of this decoder.Methods inherited from class UPCEANReader
checkChecksum, checkStandardUPCEANChecksum, decodeDigit, decodeEnd, decodeRow, decodeRow, findGuardPattern, findStartGuardPattern, getStandardUPCEANChecksumMethods inherited from class OneDReader
decode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset
-
Field Details
-
decodeMiddleCounters
private final int[] decodeMiddleCounters
-
-
Constructor Details
-
EAN8Reader
public EAN8Reader()
-
-
Method Details
-
decodeMiddle
protected 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 classUPCEANReader- Parameters:
row- row of black/white values to searchstartRange- start/end offset of start guard patternresult-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
-
getBarcodeFormat
BarcodeFormat getBarcodeFormat()Description copied from class:UPCEANReaderGet the format of this decoder.- Specified by:
getBarcodeFormatin classUPCEANReader- Returns:
- The 1D format.
-