Class MatrixUtil
- java.lang.Object
-
- zext.plantuml.com.google.zxing.qrcode.encoder.MatrixUtil
-
public final class MatrixUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbuildMatrix(BitArray dataBits, ErrorCorrectionLevel ecLevel, int version, int maskPattern, ByteMatrix matrix)static intcalculateBCHCode(int value, int poly)static voidclearMatrix(ByteMatrix matrix)static voidembedBasicPatterns(int version, ByteMatrix matrix)static voidembedDataBits(BitArray dataBits, int maskPattern, ByteMatrix matrix)static voidembedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix)static intfindMSBSet(int value)static voidmakeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitArray bits)static voidmakeVersionInfoBits(int version, BitArray bits)static voidmaybeEmbedVersionInfo(int version, ByteMatrix matrix)
-
-
-
Method Detail
-
clearMatrix
public static void clearMatrix(ByteMatrix matrix)
-
buildMatrix
public static void buildMatrix(BitArray dataBits, ErrorCorrectionLevel ecLevel, int version, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
embedBasicPatterns
public static void embedBasicPatterns(int version, ByteMatrix matrix) throws WriterException- Throws:
WriterException
-
embedTypeInfo
public static void embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
maybeEmbedVersionInfo
public static void maybeEmbedVersionInfo(int version, ByteMatrix matrix) throws WriterException- Throws:
WriterException
-
embedDataBits
public static void embedDataBits(BitArray dataBits, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
findMSBSet
public static int findMSBSet(int value)
-
calculateBCHCode
public static int calculateBCHCode(int value, int poly)
-
makeTypeInfoBits
public static void makeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitArray bits) throws WriterException
- Throws:
WriterException
-
makeVersionInfoBits
public static void makeVersionInfoBits(int version, BitArray bits) throws WriterException- Throws:
WriterException
-
-