Class BaseSaxParserFactory

    • Field Detail

      • EXCEPTION_MESSAGE_KEY_INCOMPATIBLE_CLASS

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_INCOMPATIBLE_CLASS
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_PARSER_CREATION_ERROR

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_PARSER_CREATION_ERROR
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_RESOURCE_NOT_FOUND

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_RESOURCE_NOT_FOUND
        See Also:
        Constant Field Values
      • PROPERTY_CACHE_SCHEMAS

        public static final java.lang.String PROPERTY_CACHE_SCHEMAS
        A property that determines whether XML schemas/grammars are to be cached so that they are not read/initialized each time a report is compiled.

        Currently, setting this property is only effective when a Xerces XML parser is used (either a stock one from Apache or one embedded into a SUN JDK).

        See Also:
        Constant Field Values
      • PACKAGE_PREFIX_XERCES

        protected static final java.lang.String PACKAGE_PREFIX_XERCES
        See Also:
        Constant Field Values
      • POOL_CLASS_XERCES

        protected static final java.lang.String POOL_CLASS_XERCES
        See Also:
        Constant Field Values
      • PACKAGE_PREFIX_SUN_XERCES

        protected static final java.lang.String PACKAGE_PREFIX_SUN_XERCES
        See Also:
        Constant Field Values
      • POOL_CLASS_SUN_XERCES

        protected static final java.lang.String POOL_CLASS_SUN_XERCES
        See Also:
        Constant Field Values
      • XERCES_PARSER_PROPERTY_GRAMMAR_POOL

        protected static final java.lang.String XERCES_PARSER_PROPERTY_GRAMMAR_POOL
        See Also:
        Constant Field Values
    • Constructor Detail

    • Method Detail

      • createSAXParserFactory

        protected javax.xml.parsers.SAXParserFactory createSAXParserFactory()
                                                                     throws javax.xml.parsers.ParserConfigurationException,
                                                                            org.xml.sax.SAXException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
      • isValidating

        protected abstract boolean isValidating()
      • configureParser

        protected void configureParser​(javax.xml.parsers.SAXParser parser)
                                throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • getSchemaLocations

        protected abstract java.util.List<java.lang.String> getSchemaLocations()
      • getResourceURI

        protected java.lang.String getResourceURI​(java.lang.String resource)
      • enableSchemaCaching

        protected void enableSchemaCaching​(javax.xml.parsers.SAXParser parser)
      • getGrammarPoolCache

        protected abstract java.lang.ThreadLocal<org.apache.commons.collections4.map.ReferenceMap<java.lang.Object,​java.lang.Object>> getGrammarPoolCache()
      • setGrammarPoolProperty

        protected void setGrammarPoolProperty​(javax.xml.parsers.SAXParser parser,
                                              java.lang.String poolClassName)
      • getGrammarPoolCacheKey

        protected java.lang.Object getGrammarPoolCacheKey()