encode

Encodes data into a square ECC 200 Data Matrix.

The smallest square symbol whose capacity fits the ASCII encodation of data is selected automatically.

Parameters

data

payload; ASCII bytes 0..127 only.

Throws

IllegalArgumentException

if data is empty, contains a byte above 127, or is too large for the 52×52 symbol.