java.lang.Object
tools.jackson.core.TSFBuilder<F,T>
tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder<XmlFactory,XmlFactoryBuilder>
tools.jackson.dataformat.xml.XmlFactoryBuilder
public class XmlFactoryBuilder
extends tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder<XmlFactory,XmlFactoryBuilder>
TSFBuilder
implementation for constructing XmlFactory instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClassLoaderOptionalClassLoaderto use for constructingXMLInputFactoryandXMLOutputFactoryinstances if not explicitly specified by caller.protected intSet ofToXmlGenerator.Features enabled, as bitmask.protected intSet ofFromXmlParser.Features enabled, as bitmask.protected StringIn cases where a start element has both attributes and non-empty textual value, we have to create a bogus property; we will use this as the property name.protected XmlNameProcessorSeeXmlNameProcessorandXmlNameProcessorsprotected XMLInputFactoryStax factory for creating underlying input stream readers; `null` for "use default instance with default settings"protected XMLOutputFactoryStax factory for creating underlying output stream writers; `null` for "use default instance with default settings"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(XmlReadFeature f, boolean state) configure(XmlWriteFeature f, boolean state) protected XMLInputFactoryprotected static XMLInputFactoryprotected XMLOutputFactoryprotected static XMLOutputFactorydisable(XmlReadFeature first, XmlReadFeature... other) disable(XmlWriteFeature first, XmlWriteFeature... other) enable(XmlReadFeature first, XmlReadFeature... other) enable(XmlWriteFeature first, XmlWriteFeature... other) nameForTextElement(String name) protected ClassLoaderMethod that can be used to specificClassLoaderfor creatingXMLInputFactoryandXMLOutputFactoryinstances 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 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
-
_formatParserFeatures
protected int _formatParserFeaturesSet ofFromXmlParser.Features enabled, as bitmask. -
_formatGeneratorFeatures
protected int _formatGeneratorFeaturesSet ofToXmlGenerator.Features enabled, as bitmask. -
_xmlInputFactory
Stax factory for creating underlying input stream readers; `null` for "use default instance with default settings" -
_xmlOutputFactory
Stax factory for creating underlying output stream writers; `null` for "use default instance with default settings" -
_nameForTextElement
In cases where a start element has both attributes and non-empty textual value, we have to create a bogus property; we will use this as the property name.Name used for pseudo-property used for returning XML Text value (which does not have actual element name to use). Defaults to empty String, but may be changed for inter-operability reasons: JAXB, for example, uses "value" as name.
-
_classLoaderForStax
OptionalClassLoaderto use for constructingXMLInputFactoryandXMLOutputFactoryinstances if not explicitly specified by caller. If not specified, will default toClassLoaderthat loaded this class. -
_nameProcessor
SeeXmlNameProcessorandXmlNameProcessors
-
-
Constructor Details
-
XmlFactoryBuilder
protected XmlFactoryBuilder() -
XmlFactoryBuilder
-
-
Method Details
-
nameForTextElement
-
xmlInputFactory
-
defaultXmlInputFactory
-
defaultXmlInputFactory
-
xmlOutputFactory
-
defaultXmlOutputFactory
-
defaultXmlOutputFactory
-
staxClassLoader
-
xmlNameProcessor
-
enable
-
enable
-
disable
-
disable
-
configure
-
enable
-
enable
-
disable
-
disable
-
configure
-
nameForTextElement
-
xmlInputFactory
-
xmlOutputFactory
-
staxClassLoader
Method that can be used to specificClassLoaderfor creatingXMLInputFactoryandXMLOutputFactoryinstances if those are not explicitly defined by caller: passed to respectivenewFactory()methods.
NOTE: recommended approach is to explicitly passXMLInputFactoryandXMLOutputFactorymethods instead of relying on JDK SPI mechanism. -
xmlNameProcessor
-
build
- Specified by:
buildin classtools.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>
-