Package org.gs1.gs1encoders
Class GS1Encoder.InitOptions
java.lang.Object
org.gs1.gs1encoders.GS1Encoder.InitOptions
- Enclosing class:
GS1Encoder
Initialisation options for the GS1Encoder.
New setters may be added in future versions without breaking existing code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetFallbackOnSyndictError(boolean enabled) Fall back to the embedded AI table if the Syntax Dictionary cannot be loaded.setNoEmbedded(boolean enabled) Refuse to use the embedded AI table.setSyntaxDictionary(String path) Set the path to a GS1 Syntax Dictionary file.
-
Constructor Details
-
InitOptions
public InitOptions()
-
-
Method Details
-
setSyntaxDictionary
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
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
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
-