Top Description Fields Constructors Methods
tools.jackson.dataformat.avro

public Class AvroFactoryBuilder

extends DecorableTSFactory.DecorableTSFBuilder<AvroFactory, AvroFactoryBuilder>
Class Inheritance
Imports
tools.jackson.core.ErrorReportConfiguration, .StreamReadConstraints, .StreamWriteConstraints, .StreamWriteFeature, tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder, tools.jackson.dataformat.avro.AvroFactoryBuilder

tools.jackson.core.TSFBuilder implementation for constructing AvroFactory instances.

Note

one of standard features, StreamWriteFeature#AUTO_CLOSE_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 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 tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder:
_generatorDecorators_inputDecorator_outputDecorator

Constructor Summary

AccessConstructor and Description
protected
protected
AvroFactoryBuilder(boolean useApacheDecoder)

public

Method Summary

Modifier and TypeMethod and Description
public AvroFactory
build()

Implements abstract tools.jackson.core.TSFBuilder.build.

Method for constructing actual TokenStreamFactory instance, given configuration.

public AvroFactoryBuilder
configure(AvroReadFeature f, boolean state)

public AvroFactoryBuilder
configure(AvroWriteFeature f, boolean state)

public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public AvroFactoryBuilder
public boolean
Inherited from tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder:
addDecoratorgeneratorDecoratorsinputDecoratorinputDecoratoroutputDecoratoroutputDecorator

Field Detail

_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 tools.jackson.core.TSFBuilder.build.

Doc from tools.jackson.core.TSFBuilder.build.

Method for constructing actual TokenStreamFactory instance, given configuration.

Annotations
@Override
configureback to summary
public AvroFactoryBuilder configure(AvroReadFeature f, boolean state)
configureback to summary
public AvroFactoryBuilder configure(AvroWriteFeature f, boolean state)
disableback to summary
public AvroFactoryBuilder disable(AvroReadFeature f)
disableback to summary
public AvroFactoryBuilder disable(AvroReadFeature first, AvroReadFeature... other)
disableback to summary
public AvroFactoryBuilder disable(AvroWriteFeature f)
disableback to summary
public AvroFactoryBuilder disable(AvroWriteFeature first, AvroWriteFeature... other)
enableback to summary
public AvroFactoryBuilder enable(AvroReadFeature f)
enableback to summary
public AvroFactoryBuilder enable(AvroReadFeature first, AvroReadFeature... other)
enableback to summary
public AvroFactoryBuilder enable(AvroWriteFeature f)
enableback to summary
public AvroFactoryBuilder enable(AvroWriteFeature first, AvroWriteFeature... other)
useApacheLibDecoderback to summary
public boolean useApacheLibDecoder()