Class 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.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 long serialVersionUID  
      • 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()  
      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 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.XmlFactory copy()  
      • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        _createXmlWriter in class com.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:
        _createXmlWriter in class com.fasterxml.jackson.dataformat.xml.XmlFactory
        Throws:
        java.io.IOException
      • copy

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