- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
SmileConfig.BuilderBase.SmileConfigImpl
Configuration of Smile encoding and decoding.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forSmileConfig.static classSmileConfig.BuilderBase<BUILDER extends SmileConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SmileConfig> Fluent API builder base forSmileConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic SmileConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static SmileConfig.Builderbuilder(SmileConfig instance) Create a new fluent API builder from an existing instance.static SmileConfigcreate()Create a new instance with default values.booleanWhether to emit the optional Smile end marker when closing a generator.booleanWhether to allow raw binary values in Smile content.booleanWhether to enable shared key string references.booleanWhether to enable shared value string references.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
rawBinaryEnabled
boolean rawBinaryEnabled()Whether to allow raw binary values in Smile content.- Returns:
trueto allow raw binary values
-
emitEndMark
boolean emitEndMark()Whether to emit the optional Smile end marker when closing a generator.- Returns:
trueto emit the end marker
-