public class PDF417ErrorCorrection extends Object implements PDF417Constants
BYTE_COMPACTION, CODEWORD_TABLE, CP437, DEFAULT_ENCODING, EC_COEFFICIENTS, ECI_CHARSET, ECI_GENERAL_PURPOSE, ECI_USER_DEFINED, LATCH_TO_BYTE, LATCH_TO_BYTE_PADDED, LATCH_TO_NUMERIC, LATCH_TO_TEXT, MACRO_PDF_CONTROL_BLOCK_START, MACRO_PDF_OPTIONAL_FIELD_START, MACRO_PDF_TERMINATOR, NUMERIC_COMPACTION, PAD, READER_INITIALISATION, SHIFT_TO_BYTE, START_PATTERN, STOP_PATTERN, SUBMODE_ALPHA, SUBMODE_LOWER, SUBMODE_MIXED, SUBMODE_PUNCTUATION, TEXT_COMPACTION, TEXT_MIXED_RAW, TEXT_PUNCTUATION_RAW| Constructor and Description |
|---|
PDF417ErrorCorrection() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateErrorCorrection(String dataCodewords,
int errorCorrectionLevel)
Generates the error correction codewords according to 4.10 in ISO/IEC 15438:2001(E).
|
static int |
getErrorCorrectionCodewordCount(int errorCorrectionLevel)
Determines the number of error correction codewords for a specified error correction
level.
|
static int |
getRecommendedMinimumErrorCorrectionLevel(int n)
Returns the recommended minimum error correction level as described in annex E of
ISO/IEC 15438:2001(E).
|
public static int getErrorCorrectionCodewordCount(int errorCorrectionLevel)
errorCorrectionLevel - the error correction level (0-8)public static int getRecommendedMinimumErrorCorrectionLevel(int n)
n - the number of data codewordspublic static String generateErrorCorrection(String dataCodewords, int errorCorrectionLevel)
dataCodewords - the data codewordserrorCorrectionLevel - the error correction level (0-8)Copyright © 2003–2023. All rights reserved.