Package com.itextpdf.text.pdf.qrcode
Class MatrixUtil
- java.lang.Object
-
- com.itextpdf.text.pdf.qrcode.MatrixUtil
-
public final class MatrixUtil extends java.lang.Object
- Since:
- 5.0.2
- Author:
- satorux@google.com (Satoru Takabayashi) - creator, dswitkin@google.com (Daniel Switkin) - ported from C++
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
buildMatrix(BitVector dataBits, ErrorCorrectionLevel ecLevel, int version, int maskPattern, ByteMatrix matrix)
static int
calculateBCHCode(int value, int poly)
static void
clearMatrix(ByteMatrix matrix)
static void
embedBasicPatterns(int version, ByteMatrix matrix)
static void
embedDataBits(BitVector dataBits, int maskPattern, ByteMatrix matrix)
static void
embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix)
static int
findMSBSet(int value)
static void
makeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitVector bits)
static void
makeVersionInfoBits(int version, BitVector bits)
static void
maybeEmbedVersionInfo(int version, ByteMatrix matrix)
-
-
-
Method Detail
-
clearMatrix
public static void clearMatrix(ByteMatrix matrix)
-
buildMatrix
public static void buildMatrix(BitVector 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(BitVector 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, BitVector bits) throws WriterException
- Throws:
WriterException
-
makeVersionInfoBits
public static void makeVersionInfoBits(int version, BitVector bits) throws WriterException
- Throws:
WriterException
-
-