public class SmileJsonFactoryDecorator extends Object implements JsonFactoryDecorator
JsonFactoryDecorator that will switch the output
to binary smile output instead of JSON text.
See also SmileFeatureJsonGeneratorDecorator for configuring SmileGenerator features.
| Constructor and Description |
|---|
SmileJsonFactoryDecorator() |
| Modifier and Type | Method and Description |
|---|---|
JsonFactory |
decorate(JsonFactory factory)
Decorates the given
JsonFactory. |
public JsonFactory decorate(JsonFactory factory)
JsonFactoryDecoratorJsonFactory.
By default, returns the given factory unchanged.
Note that the default JsonFactory created by logstash-logback-encoder
is a MappingJsonFactory, but can be changed by JsonFactoryDecorators
to any subclass of JsonFactory.
decorate in interface JsonFactoryDecoratorfactory - the factory to decorateJsonFactoryCopyright © 2013–2021. All rights reserved.