public class SmileFeatureJsonGeneratorDecorator extends FeatureDecorator<com.fasterxml.jackson.dataformat.smile.SmileGenerator,com.fasterxml.jackson.dataformat.smile.SmileGenerator.Feature> implements JsonGeneratorDecorator
JsonGeneratorDecorator
that allows enabling/disabling of SmileGenerator
features.
Only valid for SmileGenerator
s.
Use in conjunction with SmileJsonFactoryDecorator
.
Constructor and Description |
---|
SmileFeatureJsonGeneratorDecorator() |
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.