Barcode-Lib4J requires Java 11+

Java Class «ImplEAN128»  –  Barcode «GS1-128»

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ImplEAN14, ImplSSCC18

public class ImplEAN128 extends ImplCode128
Implementation of GS1-128 (also known as EAN-128 or UCC-128). To create instances, use one of the newInstance static methods in the Barcode class.
  • Method Details

    • setContent

      public void setContent(String content, boolean autoComplete, boolean appendOptionalChecksum) throws BarcodeException
      Sets the GS1 data to be encoded in the barcode.

      For guidance on how to properly provide GS1 structured data, refer to the GS1Validator class documentation.

      Note: This method performs validation automatically using an internal GS1Validator instance. Therefore, there is no need to create your own GS1Validator instance or to manually validate the provided content beforehand.

      Overrides:
      setContent in class ImplCode128
      Parameters:
      content - the GS1 data to be encoded in the barcode
      autoComplete - has no function in this method implementation
      appendOptionalChecksum - has no function in this method implementation
      Throws:
      BarcodeException - if the provided content is empty, or does not comply with the GS1 standard