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, Serializable
Enclosing class:
Log4jXmlObjectMapper

private static final class Log4jXmlObjectMapper.SanitizingXmlFactory extends com.fasterxml.jackson.dataformat.xml.XmlFactory
Factory that creates Log4jXmlObjectMapper.SanitizingWriter instances to ensure that all text written to the XML output is valid XML 1.0.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonFactory

    com.fasterxml.jackson.core.JsonFactory.Feature
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
     

    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
     
     
    private
    SanitizingXmlFactory(com.fasterxml.jackson.core.ObjectCodec oc, int xpFeatures, int xgFeatures, XMLInputFactory xmlIn, XMLOutputFactory xmlOut, String nameForTextElem, com.fasterxml.jackson.dataformat.xml.XmlNameProcessor nameProcessor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected XMLStreamWriter
    _createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, OutputStream out)
     
    protected XMLStreamWriter
    _createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, Writer w)
     
    com.fasterxml.jackson.dataformat.xml.XmlFactory
     

    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

    Methods inherited from class com.fasterxml.jackson.core.TokenStreamFactory

    _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _createDataOutputWrapper, _fileInputStream, _fileOutputStream, _optimizedStreamFromURL, _reportRangeError

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SanitizingXmlFactory

      public SanitizingXmlFactory()
    • SanitizingXmlFactory

      private SanitizingXmlFactory(com.fasterxml.jackson.core.ObjectCodec oc, int xpFeatures, int xgFeatures, XMLInputFactory xmlIn, XMLOutputFactory xmlOut, String nameForTextElem, com.fasterxml.jackson.dataformat.xml.XmlNameProcessor nameProcessor)
  • Method Details

    • _createXmlWriter

      protected XMLStreamWriter _createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, Writer w) throws IOException
      Overrides:
      _createXmlWriter in class com.fasterxml.jackson.dataformat.xml.XmlFactory
      Throws:
      IOException
    • _createXmlWriter

      protected XMLStreamWriter _createXmlWriter(com.fasterxml.jackson.core.io.IOContext ctxt, OutputStream out) throws IOException
      Overrides:
      _createXmlWriter in class com.fasterxml.jackson.dataformat.xml.XmlFactory
      Throws:
      IOException
    • copy

      public com.fasterxml.jackson.dataformat.xml.XmlFactory copy()
      Overrides:
      copy in class com.fasterxml.jackson.dataformat.xml.XmlFactory