java.lang.Object
tools.jackson.core.TSFBuilder<F,T>
tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder<AvroFactory,AvroFactoryBuilder>
tools.jackson.dataformat.avro.AvroFactoryBuilder
public class AvroFactoryBuilder
extends tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder<AvroFactory,AvroFactoryBuilder>
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
FieldsModifier and TypeFieldDescriptionprotected booleanFlag that is set if Apache Avro lib's decoder is to be used for decoding; `false` to use Jackson native Avro decoder.Fields inherited from class tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder
_generatorDecorators, _inputDecorator, _outputDecoratorFields inherited from class tools.jackson.core.TSFBuilder
_errorReportConfiguration, _factoryFeatures, _formatReadFeatures, _formatWriteFeatures, _recyclerPool, _streamReadConstraints, _streamReadFeatures, _streamWriteConstraints, _streamWriteFeatures -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()configure(AvroReadFeature f, boolean state) configure(AvroWriteFeature f, boolean state) disable(AvroReadFeature first, AvroReadFeature... other) disable(AvroWriteFeature first, AvroWriteFeature... other) enable(AvroReadFeature first, AvroReadFeature... other) enable(AvroWriteFeature first, AvroWriteFeature... other) booleanMethods inherited from class tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder
addDecorator, generatorDecorators, inputDecorator, inputDecorator, outputDecorator, outputDecoratorMethods inherited from class tools.jackson.core.TSFBuilder
_this, configure, configure, configure, configureForJackson2, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, errorReportConfiguration, factoryFeaturesMask, formatReadFeaturesMask, formatWriteFeaturesMask, recyclerPool, recyclerPool, streamReadConstraints, streamReadFeaturesMask, streamWriteConstraints, streamWriteFeaturesMask
-
Field Details
-
_useApacheLibDecoder
protected boolean _useApacheLibDecoderFlag that is set if Apache Avro lib's decoder is to be used for decoding; `false` to use Jackson native Avro decoder.
-
-
Constructor Details
-
AvroFactoryBuilder
protected AvroFactoryBuilder() -
AvroFactoryBuilder
protected AvroFactoryBuilder(boolean useApacheDecoder) -
AvroFactoryBuilder
-
-
Method Details
-
build
- Specified by:
buildin classtools.jackson.core.TSFBuilder<AvroFactory,AvroFactoryBuilder>
-
useApacheLibDecoder
public boolean useApacheLibDecoder() -
enable
-
enable
-
disable
-
disable
-
configure
-
enable
-
enable
-
disable
-
disable
-
configure
-