Class XMLReaderFactory

java.lang.Object
org.eclipse.rdf4j.common.xml.XMLReaderFactory

public class XMLReaderFactory extends Object
Factory class for creating an XMLReader. This factory tries to use the system property 'org.xml.sax.driver', if that fails it falls back on javax.xml.sax.parsers.SAXParserFactory. If the SAXParserFactory class can not be found (this can happen when using a Java 1.3 or older), or the initialization using SAXParserFactory fails otherwise, the factory falls back on the Xerces 2 SAX Parser.
  • Field Details

    • XERCES_SAXPARSER

      public static final String XERCES_SAXPARSER
      See Also:
    • SECURE_PROCESSING_PROPERTY

      public static final String SECURE_PROCESSING_PROPERTY
      System property for configuring XMLConstants.FEATURE_SECURE_PROCESSING.

      Defaults to true.

      See Also:
    • DISALLOW_DOCTYPE_DECL_PROPERTY

      public static final String DISALLOW_DOCTYPE_DECL_PROPERTY
      System property for configuring the Apache Xerces disallow-doctype-decl feature.

      Defaults to true.

      See Also:
    • LOAD_EXTERNAL_DTD_PROPERTY

      public static final String LOAD_EXTERNAL_DTD_PROPERTY
      System property for configuring the Apache Xerces load-external-dtd feature.

      Defaults to false.

      See Also:
    • EXTERNAL_GENERAL_ENTITIES_PROPERTY

      public static final String EXTERNAL_GENERAL_ENTITIES_PROPERTY
      System property for configuring the SAX external-general-entities feature.

      Defaults to false.

      See Also:
    • EXTERNAL_PARAMETER_ENTITIES_PROPERTY

      public static final String EXTERNAL_PARAMETER_ENTITIES_PROPERTY
      System property for configuring the SAX external-parameter-entities feature.

      Defaults to false.

      See Also:
  • Constructor Details

    • XMLReaderFactory

      public XMLReaderFactory()
  • Method Details