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 Details

    • CborFeatureJsonGeneratorDecorator

      public CborFeatureJsonGeneratorDecorator()
  • Method Details

    • decorate

      public JsonGenerator decorate(JsonGenerator generator)
      Description copied from interface: JsonGeneratorDecorator
      Decorates 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:
      decorate in interface JsonGeneratorDecorator
      Parameters:
      generator - the generator to decorate
      Returns:
      the decorated generator