Class EAN8Reader

  • All Implemented Interfaces:
    Reader

    public final class EAN8Reader
    extends UPCEANReader

    Implements decoding of the EAN-8 format.

    • Field Detail

      • decodeMiddleCounters

        private final int[] decodeMiddleCounters
    • Constructor Detail

      • EAN8Reader

        public EAN8Reader()
    • 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 class UPCEANReader
        Parameters:
        row - row of black/white values to search
        startRange - start/end offset of start guard pattern
        result - 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