Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.avro

public Class AvroFactoryBuilder

extends TSFBuilder<AvroFactory, AvroFactoryBuilder>
Class Inheritance
Imports
com.fasterxml.jackson.core.JsonGenerator, .TSFBuilder, com.fasterxml.jackson.dataformat.avro.AvroFactoryBuilder

com.fasterxml.jackson.core.TSFBuilder implementation for constructing AvroFactory instances.

Note

one of standard features, com.fasterxml.jackson.core.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.

Since
3.0

Field Summary

Modifier and TypeField and Description
protected int
_formatGeneratorFeatures

Set of AvroGenerator.Features enabled, as bitmask.

protected int
_formatParserFeatures

Set of AvroParser.Features 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.

Inherited from com.fasterxml.jackson.core.TSFBuilder:
_errorReportConfiguration_factoryFeatures_generatorDecorators_inputDecorator_outputDecorator_recyclerPool_streamReadConstraints_streamReadFeatures_streamWriteConstraints_streamWriteFeaturesDEFAULT_FACTORY_FEATURE_FLAGSDEFAULT_GENERATOR_FEATURE_FLAGSDEFAULT_PARSER_FEATURE_FLAGS

Constructor Summary

AccessConstructor and Description
protected
protected
AvroFactoryBuilder(boolean useApacheDecoder)

public

Method Summary

Modifier and TypeMethod and Description
public AvroFactory
build()

Implements abstract com.fasterxml.jackson.core.TSFBuilder.build.

Method for constructing actual TokenStreamFactory instance, given configuration.

public AvroFactoryBuilder
configure(AvroParser.Feature f, boolean state)

public AvroFactoryBuilder
configure(AvroGenerator.Feature f, boolean state)

public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public int
public int
public boolean
Inherited from com.fasterxml.jackson.core.TSFBuilder:
_copy_legacyDisable_legacyDisable_legacyEnable_legacyEnable_thisaddDecoratorconfigureconfigureconfigureconfigureconfiguredisabledisabledisabledisabledisabledisabledisabledisabledisableenableenableenableenableenableenableenableenableenableerrorReportConfigurationfactoryFeaturesMaskinputDecoratorinputDecoratoroutputDecoratoroutputDecoratorrecyclerPoolrecyclerPoolstreamReadConstraintsstreamReadFeaturesstreamWriteConstraintsstreamWriteFeatures

Field Detail

_formatGeneratorFeaturesback to summary
protected int _formatGeneratorFeatures

Set of AvroGenerator.Features enabled, as bitmask.

_formatParserFeaturesback to summary
protected int _formatParserFeatures

Set of AvroParser.Features enabled, as bitmask.

_useApacheLibDecoderback to summary
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.

Constructor Detail

AvroFactoryBuilderback to summary
protected AvroFactoryBuilder()
AvroFactoryBuilderback to summary
protected AvroFactoryBuilder(boolean useApacheDecoder)
AvroFactoryBuilderback to summary
public AvroFactoryBuilder(AvroFactory base)

Method Detail

buildback to summary
public AvroFactory build()

Implements abstract com.fasterxml.jackson.core.TSFBuilder.build.

Doc from com.fasterxml.jackson.core.TSFBuilder.build.

Method for constructing actual TokenStreamFactory instance, given configuration.

Returns:AvroFactory

TokenStreamFactory build based on current configuration

Annotations
@Override
configureback to summary
public AvroFactoryBuilder configure(AvroParser.Feature f, boolean state)
configureback to summary
public AvroFactoryBuilder configure(AvroGenerator.Feature f, boolean state)
disableback to summary
public AvroFactoryBuilder disable(AvroParser.Feature f)
disableback to summary
public AvroFactoryBuilder disable(AvroParser.Feature first, AvroParser.Feature... other)
disableback to summary
public AvroFactoryBuilder disable(AvroGenerator.Feature f)
disableback to summary
public AvroFactoryBuilder disable(AvroGenerator.Feature first, AvroGenerator.Feature... other)
enableback to summary
public AvroFactoryBuilder enable(AvroParser.Feature f)
enableback to summary
public AvroFactoryBuilder enable(AvroParser.Feature first, AvroParser.Feature... other)
enableback to summary
public AvroFactoryBuilder enable(AvroGenerator.Feature f)
enableback to summary
public AvroFactoryBuilder enable(AvroGenerator.Feature first, AvroGenerator.Feature... other)
formatGeneratorFeaturesMaskback to summary
public int formatGeneratorFeaturesMask()
formatParserFeaturesMaskback to summary
public int formatParserFeaturesMask()
useApacheLibDecoderback to summary
public boolean useApacheLibDecoder()