public class EscapeNonAsciiJsonFactoryDecorator extends Object implements JsonFactoryDecorator
JsonGenerator.Feature.ESCAPE_NON_ASCII feature on the JsonFactory.
Prior to 5.0, JsonGenerator.Feature.ESCAPE_NON_ASCII was enabled by default.
In 5.0, the feature is disabled by default, and can be re-enabled with this decorator.| Constructor and Description |
|---|
EscapeNonAsciiJsonFactoryDecorator() |
| 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–2022. All rights reserved.