public final class Code93Reader extends OneDReader
Decodes Code 93 barcodes.
Code39Reader
Modifier and Type | Field and Description |
---|---|
private static char[] |
ALPHABET |
(package private) static java.lang.String |
ALPHABET_STRING |
(package private) static int |
ASTERISK_ENCODING |
(package private) static int[] |
CHARACTER_ENCODINGS
These represent the encodings of characters, as patterns of wide and narrow bars.
|
private int[] |
counters |
private java.lang.StringBuilder |
decodeRowResult |
Constructor and Description |
---|
Code93Reader() |
Modifier and Type | Method and Description |
---|---|
private static void |
checkChecksums(java.lang.CharSequence result) |
private static void |
checkOneChecksum(java.lang.CharSequence result,
int checkPosition,
int weightMax) |
private static java.lang.String |
decodeExtended(java.lang.CharSequence encoded) |
Result |
decodeRow(int rowNumber,
BitArray row,
java.util.Map<DecodeHintType,?> hints)
Attempts to decode a one-dimensional barcode format given a single row of
an image.
|
private int[] |
findAsteriskPattern(BitArray row) |
private static char |
patternToChar(int pattern) |
private static int |
toPattern(int[] counters) |
decode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset
static final java.lang.String ALPHABET_STRING
private static final char[] ALPHABET
static final int[] CHARACTER_ENCODINGS
static final int ASTERISK_ENCODING
private final java.lang.StringBuilder decodeRowResult
private final int[] counters
public Result decodeRow(int rowNumber, BitArray row, java.util.Map<DecodeHintType,?> hints) throws NotFoundException, ChecksumException, FormatException
OneDReader
Attempts to decode a one-dimensional barcode format given a single row of an image.
decodeRow
in class OneDReader
rowNumber
- row number from top of the rowrow
- the black/white pixel data of the rowhints
- decode hintsResult
containing encoded string and start/end of barcodeNotFoundException
- 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 invalidprivate int[] findAsteriskPattern(BitArray row) throws NotFoundException
NotFoundException
private static int toPattern(int[] counters)
private static char patternToChar(int pattern) throws NotFoundException
NotFoundException
private static java.lang.String decodeExtended(java.lang.CharSequence encoded) throws FormatException
FormatException
private static void checkChecksums(java.lang.CharSequence result) throws ChecksumException
ChecksumException
private static void checkOneChecksum(java.lang.CharSequence result, int checkPosition, int weightMax) throws ChecksumException
ChecksumException