Class Decoder
- java.lang.Object
-
- com.google.zxing.maxicode.decoder.Decoder
-
public final class Decoder extends java.lang.ObjectThe 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 intALLprivate static intEVENprivate static intODDprivate ReedSolomonDecoderrsDecoder
-
Constructor Summary
Constructors Constructor Description Decoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intcorrectErrors(byte[] codewordBytes, int start, int dataCodewords, int ecCodewords, int mode)DecoderResultdecode(BitMatrix bits)DecoderResultdecode(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:
ChecksumExceptionFormatException
-
decode
public DecoderResult decode(BitMatrix bits, java.util.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
-
-