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.Features 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 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, streamWriteFeaturesprotected int _formatParserFeatures
FromXmlParser.Features 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 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 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 XmlFactory build()
build in class com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>Copyright © 2021 FasterXML. All rights reserved.