java.lang.Object
com.google.zxing.qrcode.decoder.Version.ECB
- Enclosing class:
Version
Encapsulates the parameters for one error-correction block in one symbol version. This includes the number of data codewords, and the number of times a block with these parameters is used consecutively in the QR code version's format.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe number of blocks of the type.private final intData codewords per block of the type.Constructor Summary
ConstructorsConstructorDescriptionECB(int count, int dataCodewords) Creates one group of identically sized error correction blocks.Method Summary
All MethodsModifier and TypeMethodDescriptionintgetCount()Gets the number of blocks in this group.intGets the data codewords carried by each block in this group.
Field Details
count
private final int countThe number of blocks of the type.dataCodewords
private final int dataCodewordsData codewords per block of the type.
Constructor Details
ECB
ECB(int count, int dataCodewords) Creates one group of identically sized error correction blocks.- Parameters:
count- the number of identically sized blocks in this groupdataCodewords- the number of data codewords carried by each of those blocks
Method Details
getCount
public int getCount()Gets the number of blocks in this group.- Returns:
- the number of blocks in this group
getDataCodewords
public int getDataCodewords()Gets the data codewords carried by each block in this group.- Returns:
- the data codewords