public class PDF417LogicImpl extends Object
| Constructor and Description |
|---|
PDF417LogicImpl() |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateNumberOfRows(int m,
int k,
int c)
Calculates the necessary number of rows as described in annex Q of ISO/IEC 15438:2001(E).
|
static Dimension |
determineDimensions(PDF417Bean pdf417Bean,
int sourceCodeWords)
Determine optimal nr of columns and rows for the specified number of
codewords.
|
static void |
generateBarcodeLogic(TwoDimBarcodeLogicHandler logic,
String msg,
PDF417Bean pdf417Bean)
Generates the barcode logic.
|
static int |
getNumberOfDataCodewords(int m,
int errorCorrectionLevel,
int c)
Calculates the number of data codewords (equals the Symbol Length Descriptor).
|
static int |
getNumberOfPadCodewords(int m,
int k,
int c,
int r)
Calculates the number of pad codewords as described in 4.9.2 of ISO/IEC 15438:2001(E).
|
static int |
getNumberOfRows(int m,
int k,
int c)
Calculates the necessary number of rows as described in annex Q of ISO/IEC 15438:2001(E).
|
public static int getNumberOfRows(int m,
int k,
int c)
m - the number of source codewords prior to the additional of the Symbol Length
Descriptor and any pad codewordsk - the number of error correction codewordsc - the number of columns in the symbol in the data region (excluding start, stop and
row indicator codewords)public static int calculateNumberOfRows(int m,
int k,
int c)
m - the number of source codewords prior to the additional of the Symbol Length
Descriptor and any pad codewordsk - the number of error correction codewordsc - the number of columns in the symbol in the data region (excluding start, stop and
row indicator codewords)public static int getNumberOfPadCodewords(int m,
int k,
int c,
int r)
m - the number of source codewords prior to the additional of the Symbol Length
Descriptor and any pad codewordsk - the number of error correction codewordsc - the number of columns in the symbol in the data region (excluding start, stop and
row indicator codewords)r - the number of rows in the symbolpublic static int getNumberOfDataCodewords(int m,
int errorCorrectionLevel,
int c)
m - the number of source codewords prior to the additional of the Symbol Length
Descriptor and any pad codewordserrorCorrectionLevel - the error correction level (value between 0 and 8)c - the number of columns in the symbol in the data region (excluding start, stop and
row indicator codewords)public static void generateBarcodeLogic(TwoDimBarcodeLogicHandler logic, String msg, PDF417Bean pdf417Bean)
logic - the logic handler to receive generated eventsmsg - the message to encodepdf417Bean - reference to the PDF417 bean for configuration accesspublic static Dimension determineDimensions(PDF417Bean pdf417Bean, int sourceCodeWords)
pdf417Bean - contains configuration settingssourceCodeWords - number of code wordsCopyright © 2003–2023. All rights reserved.