public final class Decoder
extends java.lang.Object
The main class which implements MaxiCode decoding -- as opposed to locating and extracting the MaxiCode from an image.
Modifier and Type | Field and Description |
---|---|
private static int |
ALL |
private static int |
EVEN |
private static int |
ODD |
private ReedSolomonDecoder |
rsDecoder |
Constructor and Description |
---|
Decoder() |
Modifier and Type | Method and Description |
---|---|
private int |
correctErrors(byte[] codewordBytes,
int start,
int dataCodewords,
int ecCodewords,
int mode) |
DecoderResult |
decode(BitMatrix bits) |
DecoderResult |
decode(BitMatrix bits,
java.util.Map<DecodeHintType,?> hints) |
private static final int ALL
private static final int EVEN
private static final int ODD
private final ReedSolomonDecoder rsDecoder
public DecoderResult decode(BitMatrix bits) throws ChecksumException, FormatException
ChecksumException
FormatException
public DecoderResult decode(BitMatrix bits, java.util.Map<DecodeHintType,?> hints) throws FormatException, ChecksumException
FormatException
ChecksumException
private int correctErrors(byte[] codewordBytes, int start, int dataCodewords, int ecCodewords, int mode) throws ChecksumException
ChecksumException