public class XmlFactoryBuilder extends com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>
TSFBuilder
implementation for constructing XmlFactory
instances.Modifier and Type | Field and Description |
---|---|
protected int |
_formatGeneratorFeatures
Set of
ToXmlGenerator.Feature 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 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
ToXmlGenerator.Feature
s enabled, as bitmask.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 inter-operability reasons: JAXB, for example, uses "value" as name.
protected XmlFactoryBuilder()
public XmlFactoryBuilder(XmlFactory base)
public int formatParserFeaturesMask()
public int formatGeneratorFeaturesMask()
public String nameForTextElement()
public XMLInputFactory xmlInputFactory()
protected static XMLInputFactory defaultInputFactory()
public XMLOutputFactory xmlOutputFactory()
protected static XMLOutputFactory defaultOutputFactory()
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 inputFactory(XMLInputFactory xmlIn)
public XmlFactoryBuilder outputFactory(XMLOutputFactory xmlOut)
public XmlFactory build()
build
in class com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>
Copyright © 2019 FasterXML. All rights reserved.