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 intprivate static final intprivate static final intprivate final ReedSolomonDecoder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intcorrectErrors(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:
ChecksumExceptionFormatException
-
decode
public DecoderResult decode(BitMatrix bits, Map<DecodeHintType, ?> hints) throws FormatException, ChecksumException - Throws:
FormatExceptionChecksumException
-
correctErrors
private int correctErrors(byte[] codewordBytes, int start, int dataCodewords, int ecCodewords, int mode) throws ChecksumException - Throws:
ChecksumException
-