Package com.google.zxing.oned
Class Code128Reader
java.lang.Object
com.google.zxing.oned.OneDReader
com.google.zxing.oned.Code128Reader
- All Implemented Interfaces:
- Reader
Decodes Code 128 barcodes.
- Author:
- Sean Owen
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondecodeRow(int rowNumber, BitArray row, Map<DecodeHintType, ?> hints) Attempts to decode a one-dimensional barcode format given a single row of an image.Methods inherited from class com.google.zxing.oned.OneDReaderdecode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset
- 
Constructor Details- 
Code128Readerpublic Code128Reader()
 
- 
- 
Method Details- 
decodeRowpublic Result decodeRow(int rowNumber, BitArray row, Map<DecodeHintType, ?> hints) throws NotFoundException, FormatException, ChecksumExceptionDescription copied from class:OneDReaderAttempts to decode a one-dimensional barcode format given a single row of an image. - Specified by:
- decodeRowin class- OneDReader
- Parameters:
- rowNumber- row number from top of the row
- row- the black/white pixel data of the row
- hints- decode hints
- Returns:
- Resultcontaining encoded string and start/end of barcode
- Throws:
- NotFoundException- if no potential barcode is found
- FormatException- if a potential barcode is found but format is invalid
- ChecksumException- if a potential barcode is found but does not pass its checksum
 
 
-