Package com.fasterxml.jackson.core
Class TSFBuilder<F extends JsonFactory,B extends TSFBuilder<F,B>>
java.lang.Object
com.fasterxml.jackson.core.TSFBuilder<F,B>
- Direct Known Subclasses:
JsonFactoryBuilder
,XmlFactoryBuilder
Since 2.10, Builder class is offered for creating token stream factories
with difference configurations: with 3.x they will be fully immutable.
- Since:
- 2.10
-
Method Summary
Modifier and TypeMethodDescriptionaddDecorator
(JsonGeneratorDecorator decorator) abstract F
build()
Method for constructing actualTokenStreamFactory
instance, given configuration.configure
(JsonReadFeature f, boolean state) configure
(JsonWriteFeature f, boolean state) configure
(JsonFactory.Feature f, boolean state) configure
(StreamReadFeature f, boolean state) configure
(StreamWriteFeature f, boolean state) disable
(JsonReadFeature first, JsonReadFeature... other) disable
(JsonWriteFeature first, JsonWriteFeature... other) disable
(StreamReadFeature first, StreamReadFeature... other) disable
(StreamWriteFeature first, StreamWriteFeature... other) enable
(JsonReadFeature first, JsonReadFeature... other) enable
(JsonWriteFeature first, JsonWriteFeature... other) enable
(StreamReadFeature first, StreamReadFeature... other) enable
(StreamWriteFeature first, StreamWriteFeature... other) errorReportConfiguration
(ErrorReportConfiguration errorReportConfiguration) Sets the configuration for error reporting.int
streamReadConstraints
(StreamReadConstraints streamReadConstraints) Sets the constraints for streaming reads.int
streamWriteConstraints
(StreamWriteConstraints streamWriteConstraints) Sets the constraints for streaming writes.int
-
Method Details
-
factoryFeaturesMask
public int factoryFeaturesMask() -
streamReadFeatures
public int streamReadFeatures() -
streamWriteFeatures
public int streamWriteFeatures() -
recyclerPool
-
inputDecorator
-
outputDecorator
-
enable
-
disable
-
configure
-
enable
-
enable
-
disable
-
disable
-
configure
-
enable
-
enable
-
disable
-
disable
-
configure
-
enable
-
enable
-
disable
-
disable
-
configure
-
enable
-
enable
-
disable
-
disable
-
configure
-
recyclerPool
- Parameters:
p
- RecyclerPool to use for buffer allocation- Returns:
- this builder (for call chaining)
- Since:
- 2.16
-
inputDecorator
-
outputDecorator
-
addDecorator
-
streamReadConstraints
Sets the constraints for streaming reads.- Parameters:
streamReadConstraints
- constraints for streaming reads- Returns:
- this builder (for call chaining)
- Since:
- 2.15
-
streamWriteConstraints
Sets the constraints for streaming writes.- Parameters:
streamWriteConstraints
- constraints for streaming reads- Returns:
- this builder (for call chaining)
- Since:
- 2.16
-
errorReportConfiguration
Sets the configuration for error reporting.- Parameters:
errorReportConfiguration
- configuration values used for handling erroneous token inputs.- Returns:
- this builder (for call chaining)
- Since:
- 2.16
-
build
Method for constructing actualTokenStreamFactory
instance, given configuration.- Returns:
TokenStreamFactory
build based on current configuration
-