com.google.zxing.qrcode.encoder
Class QRCode

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

public final class QRCode
extends Object

Since:
BlackBerry API 6.0.0

Field Summary
static int NUM_MASK_PATTERNS
           
 
Constructor Summary
QRCode()
           
 
Method Summary
 int at(int x, int y)
           
 ErrorCorrectionLevel getECLevel()
           
 int getMaskPattern()
           
 ByteMatrix getMatrix()
           
 int getMatrixWidth()
           
 Mode getMode()
           
 int getNumDataBytes()
           
 int getNumECBytes()
           
 int getNumRSBlocks()
           
 int getNumTotalBytes()
           
 int getVersion()
           
 boolean isValid()
           
static boolean isValidMaskPattern(int maskPattern)
           
 void setECLevel(ErrorCorrectionLevel value)
           
 void setMaskPattern(int value)
           
 void setMatrix(ByteMatrix value)
           
 void setMatrixWidth(int value)
           
 void setMode(Mode value)
           
 void setNumDataBytes(int value)
           
 void setNumECBytes(int value)
           
 void setNumRSBlocks(int value)
           
 void setNumTotalBytes(int value)
           
 void setVersion(int value)
           
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 



Field Detail

NUM_MASK_PATTERNS

public static final int NUM_MASK_PATTERNS
See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0


Constructor Detail

QRCode

public QRCode()
Since:
BlackBerry API 6.0.0


Method Detail

getMode

public Mode getMode()
Since:
BlackBerry API 6.0.0

getECLevel

public ErrorCorrectionLevel getECLevel()
Since:
BlackBerry API 6.0.0

getVersion

public int getVersion()
Since:
BlackBerry API 6.0.0

getMatrixWidth

public int getMatrixWidth()
Since:
BlackBerry API 6.0.0

getMaskPattern

public int getMaskPattern()
Since:
BlackBerry API 6.0.0

getNumTotalBytes

public int getNumTotalBytes()
Since:
BlackBerry API 6.0.0

getNumDataBytes

public int getNumDataBytes()
Since:
BlackBerry API 6.0.0

getNumECBytes

public int getNumECBytes()
Since:
BlackBerry API 6.0.0

getNumRSBlocks

public int getNumRSBlocks()
Since:
BlackBerry API 6.0.0

getMatrix

public ByteMatrix getMatrix()
Since:
BlackBerry API 6.0.0

at

public int at(int x,
              int y)
Since:
BlackBerry API 6.0.0

isValid

public boolean isValid()
Since:
BlackBerry API 6.0.0

toString

public String toString()
Description copied from class: Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class Object
Returns:
a string representation of the object.
Since:
BlackBerry API 6.0.0

setMode

public void setMode(Mode value)
Since:
BlackBerry API 6.0.0

setECLevel

public void setECLevel(ErrorCorrectionLevel value)
Since:
BlackBerry API 6.0.0

setVersion

public void setVersion(int value)
Since:
BlackBerry API 6.0.0

setMatrixWidth

public void setMatrixWidth(int value)
Since:
BlackBerry API 6.0.0

setMaskPattern

public void setMaskPattern(int value)
Since:
BlackBerry API 6.0.0

setNumTotalBytes

public void setNumTotalBytes(int value)
Since:
BlackBerry API 6.0.0

setNumDataBytes

public void setNumDataBytes(int value)
Since:
BlackBerry API 6.0.0

setNumECBytes

public void setNumECBytes(int value)
Since:
BlackBerry API 6.0.0

setNumRSBlocks

public void setNumRSBlocks(int value)
Since:
BlackBerry API 6.0.0

setMatrix

public void setMatrix(ByteMatrix value)
Since:
BlackBerry API 6.0.0

isValidMaskPattern

public static boolean isValidMaskPattern(int maskPattern)
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal