Class Code93Reader
java.lang.Object
com.google.zxing.oned.OneDReader
com.google.zxing.oned.Code93Reader
- All Implemented Interfaces:
Reader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char[](package private) static final String(package private) static final int(package private) static final int[]These represent the encodings of characters, as patterns of wide and narrow bars.private final int[]private final StringBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckChecksums(CharSequence result) private static voidcheckOneChecksum(CharSequence result, int checkPosition, int weightMax) private static StringdecodeExtended(CharSequence encoded) decodeRow(int rowNumber, BitArray row, Map<DecodeHintType, ?> hints) Attempts to decode a one-dimensional barcode format given a single row of an image.private int[]private static charpatternToChar(int pattern) private static inttoPattern(int[] counters) Methods inherited from class OneDReader
decode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset
-
Field Details
-
ALPHABET_STRING
- See Also:
-
ALPHABET
private static final char[] ALPHABET -
CHARACTER_ENCODINGS
static final int[] CHARACTER_ENCODINGSThese represent the encodings of characters, as patterns of wide and narrow bars. The 9 least-significant bits of each int correspond to the pattern of wide and narrow. -
ASTERISK_ENCODING
static final int ASTERISK_ENCODING -
decodeRowResult
-
counters
private final int[] counters
-
-
Constructor Details
-
Code93Reader
public Code93Reader()
-
-
Method Details
-
decodeRow
public Result decodeRow(int rowNumber, BitArray row, Map<DecodeHintType, ?> hints) throws NotFoundException, ChecksumException, FormatException Description copied from class:OneDReaderAttempts to decode a one-dimensional barcode format given a single row of an image.
- Specified by:
decodeRowin classOneDReader- Parameters:
rowNumber- row number from top of the rowrow- the black/white pixel data of the rowhints- decode hints- Returns:
Resultcontaining encoded string and start/end of barcode- Throws:
NotFoundException- if no potential barcode is foundChecksumException- if a potential barcode is found but does not pass its checksumFormatException- if a potential barcode is found but format is invalid
-
findAsteriskPattern
- Throws:
NotFoundException
-
toPattern
private static int toPattern(int[] counters) -
patternToChar
- Throws:
NotFoundException
-
decodeExtended
- Throws:
FormatException
-
checkChecksums
- Throws:
ChecksumException
-
checkOneChecksum
private static void checkOneChecksum(CharSequence result, int checkPosition, int weightMax) throws ChecksumException - Throws:
ChecksumException
-