Class CborFeatureJsonGeneratorDecorator
java.lang.Object
net.logstash.logback.decorate.FeatureDecorator<com.fasterxml.jackson.dataformat.cbor.CBORGenerator,com.fasterxml.jackson.dataformat.cbor.CBORGenerator.Feature>
net.logstash.logback.decorate.cbor.CborFeatureJsonGeneratorDecorator
- All Implemented Interfaces:
JsonGeneratorDecorator
public class CborFeatureJsonGeneratorDecorator
extends FeatureDecorator<com.fasterxml.jackson.dataformat.cbor.CBORGenerator,com.fasterxml.jackson.dataformat.cbor.CBORGenerator.Feature>
implements JsonGeneratorDecorator
A
JsonGeneratorDecorator that allows enabling/disabling of CBORGenerator features.
Only valid for CBORGenerators.
Use in conjunction with CborJsonFactoryDecorator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecorate(JsonGenerator generator) Decorates the given generator, and returns the decorated generator.Methods inherited from class net.logstash.logback.decorate.FeatureDecorator
addDisable, addEnable, decorate, disable, enable
-
Constructor Details
-
CborFeatureJsonGeneratorDecorator
public CborFeatureJsonGeneratorDecorator()
-
-
Method Details
-
decorate
Description copied from interface:JsonGeneratorDecoratorDecorates the given generator, and returns the decorated generator.The returned decorator does not need to be the same object as the given generator.
- Specified by:
decoratein interfaceJsonGeneratorDecorator- Parameters:
generator- the generator to decorate- Returns:
- the decorated generator
-