Class GS1Encoder.InitOptions

java.lang.Object
org.gs1.gs1encoders.GS1Encoder.InitOptions
Enclosing class:
GS1Encoder

public static class GS1Encoder.InitOptions extends Object
Initialisation options for the GS1Encoder. New setters may be added in future versions without breaking existing code.
  • Constructor Details

    • InitOptions

      public InitOptions()
  • Method Details

    • setSyntaxDictionary

      public GS1Encoder.InitOptions setSyntaxDictionary(String path)
      Set the path to a GS1 Syntax Dictionary file. If not set, the embedded AI table is used.
      Parameters:
      path - path to the Syntax Dictionary file
      Returns:
      this InitOptions instance for chaining
    • setFallbackOnSyndictError

      public GS1Encoder.InitOptions setFallbackOnSyndictError(boolean enabled)
      Fall back to the embedded AI table if the Syntax Dictionary cannot be loaded.
      Parameters:
      enabled - whether to enable fallback
      Returns:
      this InitOptions instance for chaining
    • setNoEmbedded

      public GS1Encoder.InitOptions setNoEmbedded(boolean enabled)
      Refuse to use the embedded AI table. Initialisation fails if no other AI table can be loaded.
      Parameters:
      enabled - whether to disable the embedded AI table
      Returns:
      this InitOptions instance for chaining