Class Log4jXmlObjectMapper.SanitizingXmlFactory
- java.lang.Object
-
- com.fasterxml.jackson.core.TokenStreamFactory
-
- com.fasterxml.jackson.core.JsonFactory
-
- com.fasterxml.jackson.dataformat.xml.XmlFactory
-
- org.apache.logging.log4j.core.jackson.Log4jXmlObjectMapper.SanitizingXmlFactory
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,java.io.Serializable
- Enclosing class:
- Log4jXmlObjectMapper
private static final class Log4jXmlObjectMapper.SanitizingXmlFactory extends com.fasterxml.jackson.dataformat.xml.XmlFactoryFactory that createsLog4jXmlObjectMapper.SanitizingWriterinstances to ensure that all text written to the XML output is valid XML 1.0.
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID-
Fields inherited from class com.fasterxml.jackson.dataformat.xml.XmlFactory
_cfgNameForTextElement, _jdkXmlInFactory, _jdkXmlOutFactory, _nameProcessor, _xmlGeneratorFeatures, _xmlInputFactory, _xmlOutputFactory, _xmlParserFeatures, FORMAT_NAME_XML
-
Fields inherited from class com.fasterxml.jackson.core.JsonFactory
_byteSymbolCanonicalizer, _characterEscapes, _errorReportConfiguration, _factoryFeatures, _generatorDecorators, _generatorFeatures, _inputDecorator, _maximumNonEscapedChar, _objectCodec, _outputDecorator, _parserFeatures, _quoteChar, _recyclerPool, _rootCharSymbols, _rootValueSeparator, _streamReadConstraints, _streamWriteConstraints, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, DEFAULT_QUOTE_CHAR, DEFAULT_ROOT_VALUE_SEPARATOR, FORMAT_NAME_JSON
-
-
Constructor Summary
Constructors Modifier Constructor Description SanitizingXmlFactory()privateSanitizingXmlFactory(com.fasterxml.jackson.core.ObjectCodec oc, int xpFeatures, int xgFeatures, javax.xml.stream.XMLInputFactory xmlIn, javax.xml.stream.XMLOutputFactory xmlOut, java.lang.String nameForTextElem, com.fasterxml.jackson.dataformat.xml.XmlNameProcessor nameProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.xml.stream.XMLStreamWriter_createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, java.io.OutputStream out)protected javax.xml.stream.XMLStreamWriter_createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, java.io.Writer w)com.fasterxml.jackson.dataformat.xml.XmlFactorycopy()-
Methods inherited from class com.fasterxml.jackson.dataformat.xml.XmlFactory
_createGenerator, _createParser, _createParser, _createParser, _createParser, _decorate, _decorate, _initFactories, _initializeXmlReader, _initializeXmlWriter, builder, canUseCharArrays, configure, configure, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createParser, createParser, disable, disable, enable, enable, getFormatGeneratorFeatures, getFormatName, getFormatParserFeatures, getFormatReadFeatureType, getFormatWriteFeatureType, getXMLInputFactory, getXmlNameProcessor, getXMLOutputFactory, getXMLTextElementName, hasFormat, hasXMLFormat, isEnabled, isEnabled, readResolve, rebuild, requiresCustomCodec, setXMLInputFactory, setXmlNameProcessor, setXMLOutputFactory, setXMLTextElementName, version
-
Methods inherited from class com.fasterxml.jackson.core.JsonFactory
_checkInvalidCopy, _copy, _createContentReference, _createContentReference, _createContext, _createContext, _createNonBlockingContext, _createParser, _createUTF8Generator, _createWriter, _decorate, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, _getRecyclerPool, canHandleBinaryNatively, canParseAsync, canUseSchema, configure, configure, configure, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createNonBlockingByteBufferParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getFactoryFeatures, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, requiresPropertyOrdering, setCharacterEscapes, setCodec, setErrorReportConfiguration, setInputDecorator, setOutputDecorator, setRecyclerPool, setRootValueSeparator, setStreamReadConstraints, setStreamWriteConstraints, streamReadConstraints, streamWriteConstraints
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SanitizingXmlFactory
public SanitizingXmlFactory()
-
SanitizingXmlFactory
private SanitizingXmlFactory(com.fasterxml.jackson.core.ObjectCodec oc, int xpFeatures, int xgFeatures, javax.xml.stream.XMLInputFactory xmlIn, javax.xml.stream.XMLOutputFactory xmlOut, java.lang.String nameForTextElem, com.fasterxml.jackson.dataformat.xml.XmlNameProcessor nameProcessor)
-
-
Method Detail
-
_createXmlWriter
protected javax.xml.stream.XMLStreamWriter _createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, java.io.Writer w) throws java.io.IOException- Overrides:
_createXmlWriterin classcom.fasterxml.jackson.dataformat.xml.XmlFactory- Throws:
java.io.IOException
-
_createXmlWriter
protected javax.xml.stream.XMLStreamWriter _createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, java.io.OutputStream out) throws java.io.IOException- Overrides:
_createXmlWriterin classcom.fasterxml.jackson.dataformat.xml.XmlFactory- Throws:
java.io.IOException
-
copy
public com.fasterxml.jackson.dataformat.xml.XmlFactory copy()
- Overrides:
copyin classcom.fasterxml.jackson.dataformat.xml.XmlFactory
-
-