public class AvroFactoryBuilder extends com.fasterxml.jackson.core.TSFBuilder<AvroFactory,AvroFactoryBuilder>
TSFBuilder
implementation for constructing AvroFactory
instances.
Note: one of standard features,
JsonGenerator.Feature.AUTO_CLOSE_JSON_CONTENT
,
is disabled by default, as it does not play well with error handling. It may be
forcibly enabled (if there is ever reason to do so), just defaults to false
.
Modifier and Type | Field and Description |
---|---|
protected int |
_formatGeneratorFeatures
Set of
AvroGenerator.Feature s enabled, as bitmask. |
protected int |
_formatParserFeatures
Set of
AvroParser.Feature s enabled, as bitmask. |
protected boolean |
_useApacheLibDecoder
Flag that is set if Apache Avro lib's decoder is to be used for decoding;
`false` to use Jackson native Avro decoder.
|
Modifier | Constructor and Description |
---|---|
protected |
AvroFactoryBuilder() |
|
AvroFactoryBuilder(AvroFactory base) |
protected |
AvroFactoryBuilder(boolean useApacheDecoder) |
Modifier and Type | Method and Description |
---|---|
AvroFactory |
build() |
AvroFactoryBuilder |
configure(AvroGenerator.Feature f,
boolean state) |
AvroFactoryBuilder |
configure(AvroParser.Feature f,
boolean state) |
AvroFactoryBuilder |
disable(AvroGenerator.Feature f) |
AvroFactoryBuilder |
disable(AvroGenerator.Feature first,
AvroGenerator.Feature... other) |
AvroFactoryBuilder |
disable(AvroParser.Feature f) |
AvroFactoryBuilder |
disable(AvroParser.Feature first,
AvroParser.Feature... other) |
AvroFactoryBuilder |
enable(AvroGenerator.Feature f) |
AvroFactoryBuilder |
enable(AvroGenerator.Feature first,
AvroGenerator.Feature... other) |
AvroFactoryBuilder |
enable(AvroParser.Feature f) |
AvroFactoryBuilder |
enable(AvroParser.Feature first,
AvroParser.Feature... other) |
int |
formatGeneratorFeaturesMask() |
int |
formatParserFeaturesMask() |
boolean |
useApacheLibDecoder() |
_legacyDisable, _legacyDisable, _legacyEnable, _legacyEnable, _this, configure, configure, configure, configure, configure, disable, disable, disable, disable, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, enable, enable, enable, enable, factoryFeaturesMask, inputDecorator, inputDecorator, outputDecorator, outputDecorator, streamReadFeatures, streamWriteFeatures
protected int _formatParserFeatures
AvroParser.Feature
s enabled, as bitmask.protected int _formatGeneratorFeatures
AvroGenerator.Feature
s enabled, as bitmask.protected boolean _useApacheLibDecoder
protected AvroFactoryBuilder()
protected AvroFactoryBuilder(boolean useApacheDecoder)
public AvroFactoryBuilder(AvroFactory base)
public AvroFactory build()
build
in class com.fasterxml.jackson.core.TSFBuilder<AvroFactory,AvroFactoryBuilder>
public int formatParserFeaturesMask()
public int formatGeneratorFeaturesMask()
public boolean useApacheLibDecoder()
public AvroFactoryBuilder enable(AvroParser.Feature f)
public AvroFactoryBuilder enable(AvroParser.Feature first, AvroParser.Feature... other)
public AvroFactoryBuilder disable(AvroParser.Feature f)
public AvroFactoryBuilder disable(AvroParser.Feature first, AvroParser.Feature... other)
public AvroFactoryBuilder configure(AvroParser.Feature f, boolean state)
public AvroFactoryBuilder enable(AvroGenerator.Feature f)
public AvroFactoryBuilder enable(AvroGenerator.Feature first, AvroGenerator.Feature... other)
public AvroFactoryBuilder disable(AvroGenerator.Feature f)
public AvroFactoryBuilder disable(AvroGenerator.Feature first, AvroGenerator.Feature... other)
public AvroFactoryBuilder configure(AvroGenerator.Feature f, boolean state)
Copyright © 2022 FasterXML. All rights reserved.