AddOnData Property

Determines the data used by the add-on portion of the barcode.


public char[] getAddOnData()
public boolean setAddOnData(char data[])
public boolean setAddOnData(String data)



Specifies the data for the add-on portion of the barcode.

The default is a suite of 0s.


This property must be set after barcodeType has been set; any change to the barcodeType property will cause this property to change back to a suite of 0s.

The value of this property must be valid for the current barcodeType, otherwise setAddOnData will either return false or, if the throwDataError property is true, an error will be thrown instead.

Most barcode types do not have add-ons.