Class XmlFactoryBuilder
java.lang.Object
com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>
com.fasterxml.jackson.dataformat.xml.XmlFactoryBuilder
TSFBuilder
implementation
for constructing XmlFactory
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Method for constructing actualTokenStreamFactory
instance, given configuration.configure
(FromXmlParser.Feature f, boolean state) configure
(ToXmlGenerator.Feature f, boolean state) disable
(FromXmlParser.Feature first, FromXmlParser.Feature... other) disable
(ToXmlGenerator.Feature first, ToXmlGenerator.Feature... other) enable
(FromXmlParser.Feature first, FromXmlParser.Feature... other) enable
(ToXmlGenerator.Feature first, ToXmlGenerator.Feature... other) int
int
inputFactory
(XMLInputFactory xmlIn) Deprecated.nameForTextElement
(String name) outputFactory
(XMLOutputFactory xmlOut) Deprecated.Since 2.13 usexmlOutputFactory()
insteadMethod that can be used to specificClassLoader
for creatingXMLInputFactory
andXMLOutputFactory
instances if those are not explicitly defined by caller: passed to respectivenewFactory()
methods.xmlInputFactory
(XMLInputFactory xmlIn) xmlNameProcessor
(XmlNameProcessor nameProcessor) xmlOutputFactory
(XMLOutputFactory xmlOut) Methods inherited from class com.fasterxml.jackson.core.TSFBuilder
addDecorator, configure, configure, configure, configure, configure, disable, disable, disable, disable, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, enable, enable, enable, enable, errorReportConfiguration, factoryFeaturesMask, inputDecorator, inputDecorator, outputDecorator, outputDecorator, recyclerPool, recyclerPool, streamReadConstraints, streamReadFeatures, streamWriteConstraints, streamWriteFeatures
-
Constructor Details
-
XmlFactoryBuilder
-
-
Method Details
-
formatParserFeaturesMask
public int formatParserFeaturesMask() -
formatGeneratorFeaturesMask
public int formatGeneratorFeaturesMask() -
nameForTextElement
-
xmlInputFactory
-
xmlOutputFactory
-
xmlNameProcessor
-
enable
-
enable
-
disable
-
disable
-
configure
-
enable
-
enable
-
disable
-
disable
-
configure
-
nameForTextElement
-
xmlInputFactory
- Since:
- 2.13 (was misnamed as
inputFactory(in) formerly
)
-
xmlOutputFactory
- Since:
- 2.13 (was misnamed as
outputFactory(in) formerly
)
-
inputFactory
Deprecated.Since 2.13 usexmlInputFactory()
instead -
outputFactory
Deprecated.Since 2.13 usexmlOutputFactory()
instead -
staxClassLoader
Method that can be used to specificClassLoader
for creatingXMLInputFactory
andXMLOutputFactory
instances if those are not explicitly defined by caller: passed to respectivenewFactory()
methods.
NOTE: recommended approach is to explicitly passXMLInputFactory
andXMLOutputFactory
methods instead of relying on JDK SPI mechanism.- Since:
- 2.13
-
xmlNameProcessor
- Since:
- 2.14
-
build
Description copied from class:TSFBuilder
Method for constructing actualTokenStreamFactory
instance, given configuration.- Specified by:
build
in classTSFBuilder<XmlFactory,
XmlFactoryBuilder> - Returns:
TokenStreamFactory
build based on current configuration
-
xmlInputFactory()
instead