com.google.zxing.qrcode.encoder
Class MatrixUtil

java.lang.Object
  extended by com.google.zxing.qrcode.encoder.MatrixUtil

public final class MatrixUtil
extends Object

Since:
BlackBerry API 6.0.0

Method Summary
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Method Detail

clearMatrix

public static void clearMatrix(ByteMatrix matrix)
Since:
BlackBerry API 6.0.0

buildMatrix

public static void buildMatrix(BitVector dataBits,
                               ErrorCorrectionLevel ecLevel,
                               int version,
                               int maskPattern,
                               ByteMatrix matrix)
                        throws WriterException
Throws:
WriterException
Since:
BlackBerry API 6.0.0

embedBasicPatterns

public static void embedBasicPatterns(int version,
                                      ByteMatrix matrix)
                               throws WriterException
Throws:
WriterException
Since:
BlackBerry API 6.0.0

embedTypeInfo

public static void embedTypeInfo(ErrorCorrectionLevel ecLevel,
                                 int maskPattern,
                                 ByteMatrix matrix)
                          throws WriterException
Throws:
WriterException
Since:
BlackBerry API 6.0.0

maybeEmbedVersionInfo

public static void maybeEmbedVersionInfo(int version,
                                         ByteMatrix matrix)
                                  throws WriterException
Throws:
WriterException
Since:
BlackBerry API 6.0.0

embedDataBits

public static void embedDataBits(BitVector dataBits,
                                 int maskPattern,
                                 ByteMatrix matrix)
                          throws WriterException
Throws:
WriterException
Since:
BlackBerry API 6.0.0

findMSBSet

public static int findMSBSet(int value)
Since:
BlackBerry API 6.0.0

calculateBCHCode

public static int calculateBCHCode(int value,
                                   int poly)
Since:
BlackBerry API 6.0.0

makeTypeInfoBits

public static void makeTypeInfoBits(ErrorCorrectionLevel ecLevel,
                                    int maskPattern,
                                    BitVector bits)
                             throws WriterException
Throws:
WriterException
Since:
BlackBerry API 6.0.0

makeVersionInfoBits

public static void makeVersionInfoBits(int version,
                                       BitVector bits)
                                throws WriterException
Throws:
WriterException
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.