Class Decoder
java.lang.Object
com.google.zxing.maxicode.decoder.Decoder
The main class which implements MaxiCode decoding -- as opposed to locating and extracting the MaxiCode from an image.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private final ReedSolomonDecoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
correctErrors
(byte[] codewordBytes, int start, int dataCodewords, int ecCodewords, int mode) decode
(BitMatrix bits, Map<DecodeHintType, ?> hints)
-
Field Details
-
ALL
private static final int ALL- See Also:
-
EVEN
private static final int EVEN- See Also:
-
ODD
private static final int ODD- See Also:
-
rsDecoder
-
-
Constructor Details
-
Decoder
public Decoder()
-
-
Method Details
-
decode
- Throws:
ChecksumException
FormatException
-
decode
public DecoderResult decode(BitMatrix bits, 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
-