final class PDF417ErrorCorrection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int[][] |
EC_COEFFICIENTS
Tables of coefficients for calculating error correction words
(see annex F, ISO/IEC 15438:2001(E))
|
Modifier | Constructor and Description |
---|---|
private |
PDF417ErrorCorrection() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
generateErrorCorrection(java.lang.CharSequence dataCodewords,
int errorCorrectionLevel)
Generates the error correction codewords according to 4.10 in ISO/IEC 15438:2001(E).
|
(package private) static int |
getErrorCorrectionCodewordCount(int errorCorrectionLevel)
Determines the number of error correction codewords for a specified error correction
level.
|
(package private) static int |
getRecommendedMinimumErrorCorrectionLevel(int n)
Returns the recommended minimum error correction level as described in annex E of
ISO/IEC 15438:2001(E).
|
private static final int[][] EC_COEFFICIENTS
static int getErrorCorrectionCodewordCount(int errorCorrectionLevel)
errorCorrectionLevel
- the error correction level (0-8)static int getRecommendedMinimumErrorCorrectionLevel(int n) throws WriterException
n
- the number of data codewordsWriterException
static java.lang.String generateErrorCorrection(java.lang.CharSequence dataCodewords, int errorCorrectionLevel)
dataCodewords
- the data codewordserrorCorrectionLevel
- the error correction level (0-8)