public class XmlFactoryBuilder extends com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>
TSFBuilder
implementation
for constructing XmlFactory
instances.Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
_classLoaderForStax
Optional
ClassLoader to use for constructing
XMLInputFactory and instances if
not explicitly specified by caller. |
protected int |
_formatGeneratorFeatures
Set of s enabled, as bitmask.
|
protected int |
_formatParserFeatures
Set of
FromXmlParser.Feature s enabled, as bitmask. |
protected String |
_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.
|
protected XmlNameProcessor |
_nameProcessor
See
XmlNameProcessor and XmlNameProcessors |
protected XMLInputFactory |
_xmlInputFactory
Stax factory for creating underlying input stream readers;
`null` for "use default instance with default settings"
|
protected XMLOutputFactory |
_xmlOutputFactory
Stax factory for creating underlying output stream writers;
`null` for "use default instance with default settings"
|
Modifier | Constructor and Description |
---|---|
protected |
XmlFactoryBuilder() |
|
XmlFactoryBuilder(XmlFactory base) |
_legacyDisable, _legacyDisable, _legacyEnable, _legacyEnable, _this, configure, configure, configure, configure, configure, disable, disable, disable, disable, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, enable, enable, enable, enable, factoryFeaturesMask, inputDecorator, inputDecorator, outputDecorator, outputDecorator, streamReadFeatures, streamWriteFeatures
protected int _formatParserFeatures
FromXmlParser.Feature
s enabled, as bitmask.protected int _formatGeneratorFeatures
protected XMLInputFactory _xmlInputFactory
protected XMLOutputFactory _xmlOutputFactory
protected String _nameForTextElement
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 interoperability reasons: JAXB, for example, uses "value" as name.
protected ClassLoader _classLoaderForStax
ClassLoader
to use for constructing
XMLInputFactory
and instances if
not explicitly specified by caller. If not specified, will
default to ClassLoader
that loaded this class.protected XmlNameProcessor _nameProcessor
XmlNameProcessor
and XmlNameProcessors
protected XmlFactoryBuilder()
public XmlFactoryBuilder(XmlFactory base)
public int formatParserFeaturesMask()
public int formatGeneratorFeaturesMask()
public String nameForTextElement()
public XMLInputFactory xmlInputFactory()
protected XMLInputFactory defaultInputFactory()
public XMLOutputFactory xmlOutputFactory()
protected XMLOutputFactory defaultOutputFactory()
protected ClassLoader staxClassLoader()
public XmlNameProcessor xmlNameProcessor()
public XmlFactoryBuilder enable(FromXmlParser.Feature f)
public XmlFactoryBuilder enable(FromXmlParser.Feature first, FromXmlParser.Feature... other)
public XmlFactoryBuilder disable(FromXmlParser.Feature f)
public XmlFactoryBuilder disable(FromXmlParser.Feature first, FromXmlParser.Feature... other)
public XmlFactoryBuilder configure(FromXmlParser.Feature f, boolean state)
public XmlFactoryBuilder enable(ToXmlGenerator.Feature f)
public XmlFactoryBuilder enable(ToXmlGenerator.Feature first, ToXmlGenerator.Feature... other)
public XmlFactoryBuilder disable(ToXmlGenerator.Feature f)
public XmlFactoryBuilder disable(ToXmlGenerator.Feature first, ToXmlGenerator.Feature... other)
public XmlFactoryBuilder configure(ToXmlGenerator.Feature f, boolean state)
public XmlFactoryBuilder nameForTextElement(String name)
public XmlFactoryBuilder xmlInputFactory(XMLInputFactory xmlIn)
inputFactory(in) formerly
)public XmlFactoryBuilder xmlOutputFactory(XMLOutputFactory xmlOut)
outputFactory(in) formerly
)@Deprecated public XmlFactoryBuilder inputFactory(XMLInputFactory xmlIn)
xmlInputFactory()
instead@Deprecated public XmlFactoryBuilder outputFactory(XMLOutputFactory xmlOut)
xmlOutputFactory()
insteadpublic XmlFactoryBuilder staxClassLoader(ClassLoader cl)
ClassLoader
for creating
XMLInputFactory
and XMLOutputFactory
instances if
those are not explicitly defined by caller: passed to respective
newFactory()
methods.
XMLInputFactory
and XMLOutputFactory
methods instead of relying on JDK SPI
mechanism.public XmlFactoryBuilder xmlNameProcessor(XmlNameProcessor nameProcessor)
public XmlFactory build()
build
in class com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>
Copyright © 2022 FasterXML. All rights reserved.