Back to Zxing

Class EAN8Reader

docs/apidocs/com/google/zxing/oned/EAN8Reader.html

latest2.6 KB
Original Source

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 EAN8Readerextends UPCEANReader

Implements decoding of the EAN-8 format.

Author:Sean Owen

Constructor Summary

Constructors

Constructor

Description

EAN8Reader()

Method Summary

All MethodsInstance MethodsConcrete Methods

Modifier and Type

Method

Description

protected int

decodeMiddle(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.UPCEANReader

decodeRow, decodeRow

Methods inherited from class com.google.zxing.oned.OneDReader

decode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

EAN8Reader

public EAN8Reader()

Method Details

decodeMiddle

protected int decodeMiddle(BitArray row, int[] startRange, 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 class UPCEANReaderParameters:row - row of black/white values to searchstartRange - start/end offset of start guard patternresult - StringBuilder to append decoded chars toReturns:horizontal offset of first pixel after the "middle" that was decodedThrows:NotFoundException - if decoding could not complete successfully