Package com.itextpdf.barcodes.qrcode
Class ReedSolomonEncoder
java.lang.Object
com.itextpdf.barcodes.qrcode.ReedSolomonEncoder
Implements Reed-Solomon encoding, as the name implies.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReedSolomonEncoder
(GF256 field) Creates a SolomonEncoder object based on aGF256
object. -
Method Summary
Modifier and TypeMethodDescriptionprivate GF256Poly
buildGenerator
(int degree) void
encode
(int[] toEncode, int ecBytes) Encodes the provided data.
-
Field Details
-
field
-
cachedGenerators
-
-
Constructor Details
-
ReedSolomonEncoder
Creates a SolomonEncoder object based on aGF256
object. Only QR codes are supported at the moment.- Parameters:
field
- the galois field
-
-
Method Details
-
buildGenerator
-
encode
public void encode(int[] toEncode, int ecBytes) Encodes the provided data.- Parameters:
toEncode
- data to encodeecBytes
- error correction bytes
-