public abstract class TSFBuilder<F extends JsonFactory,B extends TSFBuilder<F,B>> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
_factoryFeatures
Set of
JsonFactory.Feature s enabled,
as bitmask. |
protected InputDecorator |
_inputDecorator
Optional helper object that may decorate input sources, to do
additional processing on input during parsing.
|
protected OutputDecorator |
_outputDecorator
Optional helper object that may decorate output object, to do
additional processing on output during content generation.
|
protected int |
_streamReadFeatures
Set of
JsonParser.Feature s enabled, as bitmask. |
protected int |
_streamWriteFeatures
Set of
JsonGenerator.Feature s enabled, as bitmask. |
protected static int |
DEFAULT_FACTORY_FEATURE_FLAGS
Bitfield (set of flags) of all factory features that are enabled by default.
|
protected static int |
DEFAULT_GENERATOR_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled
by default.
|
protected static int |
DEFAULT_PARSER_FEATURE_FLAGS
Bitfield (set of flags) of all parser features that are enabled
by default.
|
Modifier | Constructor and Description |
---|---|
protected |
TSFBuilder() |
protected |
TSFBuilder(int factoryFeatures,
int parserFeatures,
int generatorFeatures) |
protected |
TSFBuilder(JsonFactory base) |
protected static final int DEFAULT_FACTORY_FEATURE_FLAGS
protected static final int DEFAULT_PARSER_FEATURE_FLAGS
protected static final int DEFAULT_GENERATOR_FEATURE_FLAGS
protected int _factoryFeatures
JsonFactory.Feature
s enabled,
as bitmask.protected int _streamReadFeatures
JsonParser.Feature
s enabled, as bitmask.protected int _streamWriteFeatures
JsonGenerator.Feature
s enabled, as bitmask.protected InputDecorator _inputDecorator
protected OutputDecorator _outputDecorator
protected TSFBuilder()
protected TSFBuilder(JsonFactory base)
protected TSFBuilder(int factoryFeatures, int parserFeatures, int generatorFeatures)
public int factoryFeaturesMask()
public int streamReadFeatures()
public int streamWriteFeatures()
public InputDecorator inputDecorator()
public OutputDecorator outputDecorator()
public B enable(JsonFactory.Feature f)
public B disable(JsonFactory.Feature f)
public B configure(JsonFactory.Feature f, boolean state)
public B enable(StreamReadFeature f)
public B enable(StreamReadFeature first, StreamReadFeature... other)
public B disable(StreamReadFeature f)
public B disable(StreamReadFeature first, StreamReadFeature... other)
public B configure(StreamReadFeature f, boolean state)
public B enable(StreamWriteFeature f)
public B enable(StreamWriteFeature first, StreamWriteFeature... other)
public B disable(StreamWriteFeature f)
public B disable(StreamWriteFeature first, StreamWriteFeature... other)
public B configure(StreamWriteFeature f, boolean state)
public B enable(JsonReadFeature f)
public B enable(JsonReadFeature first, JsonReadFeature... other)
public B disable(JsonReadFeature f)
public B disable(JsonReadFeature first, JsonReadFeature... other)
public B configure(JsonReadFeature f, boolean state)
public B enable(JsonWriteFeature f)
public B enable(JsonWriteFeature first, JsonWriteFeature... other)
public B disable(JsonWriteFeature f)
public B disable(JsonWriteFeature first, JsonWriteFeature... other)
public B configure(JsonWriteFeature f, boolean state)
public B inputDecorator(InputDecorator dec)
public B outputDecorator(OutputDecorator dec)
public abstract F build()
TokenStreamFactory
instance, given
configuration.TokenStreamFactory
build based on current configurationprotected final B _this()
protected void _legacyEnable(JsonParser.Feature f)
protected void _legacyDisable(JsonParser.Feature f)
protected void _legacyEnable(JsonGenerator.Feature f)
protected void _legacyDisable(JsonGenerator.Feature f)
Copyright © 2008–2021 FasterXML. All rights reserved.