public class CborFeatureJsonGeneratorDecorator extends FeatureDecorator<com.fasterxml.jackson.dataformat.cbor.CBORGenerator,com.fasterxml.jackson.dataformat.cbor.CBORGenerator.Feature> implements JsonGeneratorDecorator
JsonGeneratorDecorator
that allows enabling/disabling of CBORGenerator
features.
Only valid for CBORGenerator
s.
Use in conjunction with CborJsonFactoryDecorator
.
Constructor and Description |
---|
CborFeatureJsonGeneratorDecorator() |
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
decorate(JsonGenerator generator)
Decorates the given generator, and returns the decorated generator.
|
addDisable, addEnable, decorate, disable, enable
public JsonGenerator decorate(JsonGenerator generator)
JsonGeneratorDecorator
The returned decorator does not need to be the same object as the given generator.
decorate
in interface JsonGeneratorDecorator
generator
- the generator to decorateCopyright © 2020. All rights reserved.