Class Decoder
- java.lang.Object
-
- com.google.zxing.maxicode.decoder.Decoder
-
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.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
ALL
private static int
EVEN
private static int
ODD
private ReedSolomonDecoder
rsDecoder
-
Constructor Summary
Constructors Constructor Description Decoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
ALL
private static final int ALL
- See Also:
- Constant Field Values
-
EVEN
private static final int EVEN
- See Also:
- Constant Field Values
-
ODD
private static final int ODD
- See Also:
- Constant Field Values
-
rsDecoder
private final ReedSolomonDecoder rsDecoder
-
-
Method Detail
-
decode
public DecoderResult decode(BitMatrix bits) throws ChecksumException, FormatException
- Throws:
ChecksumException
FormatException
-
decode
public DecoderResult decode(BitMatrix bits, java.util.Map<DecodeHintType,?> hints) throws FormatException, ChecksumException
- Throws:
FormatException
ChecksumException
-
correctErrors
private int correctErrors(byte[] codewordBytes, int start, int dataCodewords, int ecCodewords, int mode) throws ChecksumException
- Throws:
ChecksumException
-
-