Class XmlFactoryBuilder
- java.lang.Object
-
- com.fasterxml.jackson.core.TSFBuilder<XmlFactory,XmlFactoryBuilder>
-
- com.fasterxml.jackson.dataformat.xml.XmlFactoryBuilder
-
public class XmlFactoryBuilder extends TSFBuilder<XmlFactory,XmlFactoryBuilder>
TSFBuilderimplementation for constructingXmlFactoryinstances.
-
-
Constructor Summary
Constructors Constructor Description XmlFactoryBuilder(XmlFactory base)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description XmlFactorybuild()Method for constructing actualTokenStreamFactoryinstance, given configuration.XmlFactoryBuilderconfigure(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature f, boolean state)XmlFactoryBuilderconfigure(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature f, boolean state)XmlFactoryBuilderdisable(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature f)XmlFactoryBuilderdisable(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature first, com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature... other)XmlFactoryBuilderdisable(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature f)XmlFactoryBuilderdisable(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature first, com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature... other)XmlFactoryBuilderenable(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature f)XmlFactoryBuilderenable(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature first, com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature... other)XmlFactoryBuilderenable(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature f)XmlFactoryBuilderenable(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature first, com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature... other)intformatGeneratorFeaturesMask()intformatParserFeaturesMask()XmlFactoryBuilderinputFactory(javax.xml.stream.XMLInputFactory xmlIn)Deprecated.Since 2.13 usexmlInputFactory()insteadjava.lang.StringnameForTextElement()XmlFactoryBuildernameForTextElement(java.lang.String name)XmlFactoryBuilderoutputFactory(javax.xml.stream.XMLOutputFactory xmlOut)Deprecated.Since 2.13 usexmlOutputFactory()insteadXmlFactoryBuilderstaxClassLoader(java.lang.ClassLoader cl)Method that can be used to specificClassLoaderfor creatingXMLInputFactoryandXMLOutputFactoryinstances if those are not explicitly defined by caller: passed to respectivenewFactory()methods.javax.xml.stream.XMLInputFactoryxmlInputFactory()XmlFactoryBuilderxmlInputFactory(javax.xml.stream.XMLInputFactory xmlIn)XmlNameProcessorxmlNameProcessor()XmlFactoryBuilderxmlNameProcessor(XmlNameProcessor nameProcessor)javax.xml.stream.XMLOutputFactoryxmlOutputFactory()XmlFactoryBuilderxmlOutputFactory(javax.xml.stream.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 Detail
-
XmlFactoryBuilder
public XmlFactoryBuilder(XmlFactory base)
-
-
Method Detail
-
formatParserFeaturesMask
public int formatParserFeaturesMask()
-
formatGeneratorFeaturesMask
public int formatGeneratorFeaturesMask()
-
nameForTextElement
public java.lang.String nameForTextElement()
-
xmlInputFactory
public javax.xml.stream.XMLInputFactory xmlInputFactory()
-
xmlOutputFactory
public javax.xml.stream.XMLOutputFactory xmlOutputFactory()
-
xmlNameProcessor
public XmlNameProcessor xmlNameProcessor()
-
enable
public XmlFactoryBuilder enable(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature f)
-
enable
public XmlFactoryBuilder enable(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature first, com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature... other)
-
disable
public XmlFactoryBuilder disable(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature f)
-
disable
public XmlFactoryBuilder disable(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature first, com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature... other)
-
configure
public XmlFactoryBuilder configure(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature f, boolean state)
-
enable
public XmlFactoryBuilder enable(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature f)
-
enable
public XmlFactoryBuilder enable(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature first, com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature... other)
-
disable
public XmlFactoryBuilder disable(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature f)
-
disable
public XmlFactoryBuilder disable(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature first, com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature... other)
-
configure
public XmlFactoryBuilder configure(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature f, boolean state)
-
nameForTextElement
public XmlFactoryBuilder nameForTextElement(java.lang.String name)
-
xmlInputFactory
public XmlFactoryBuilder xmlInputFactory(javax.xml.stream.XMLInputFactory xmlIn)
- Since:
- 2.13 (was misnamed as
inputFactory(in) formerly)
-
xmlOutputFactory
public XmlFactoryBuilder xmlOutputFactory(javax.xml.stream.XMLOutputFactory xmlOut)
- Since:
- 2.13 (was misnamed as
outputFactory(in) formerly)
-
inputFactory
@Deprecated public XmlFactoryBuilder inputFactory(javax.xml.stream.XMLInputFactory xmlIn)
Deprecated.Since 2.13 usexmlInputFactory()instead
-
outputFactory
@Deprecated public XmlFactoryBuilder outputFactory(javax.xml.stream.XMLOutputFactory xmlOut)
Deprecated.Since 2.13 usexmlOutputFactory()instead
-
staxClassLoader
public XmlFactoryBuilder staxClassLoader(java.lang.ClassLoader cl)
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.- Since:
- 2.13
-
xmlNameProcessor
public XmlFactoryBuilder xmlNameProcessor(XmlNameProcessor nameProcessor)
- Since:
- 2.14
-
build
public XmlFactory build()
Description copied from class:TSFBuilderMethod for constructing actualTokenStreamFactoryinstance, given configuration.- Specified by:
buildin classTSFBuilder<XmlFactory,XmlFactoryBuilder>- Returns:
TokenStreamFactorybuild based on current configuration
-
-