public static final class XmlLoader.LoadExternalDtdFeatureProvider extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENABLE_EXTERNAL_DTD_LOAD
System property name to enable external DTD load.
|
static java.lang.String |
EXTERNAL_GENERAL_ENTITIES
Feature that enables including external general entities in XML files.
|
static java.lang.String |
EXTERNAL_PARAMETER_ENTITIES
Feature that enables including external parameter entities in XML files.
|
static java.lang.String |
LOAD_EXTERNAL_DTD
Feature that enables loading external DTD when loading XML files.
|
| Modifier | Constructor and Description |
|---|---|
private |
LoadExternalDtdFeatureProvider()
Stop instances being created.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
setFeaturesBySystemProperty(javax.xml.parsers.SAXParserFactory factory)
Configures SAXParserFactory with features required
to use external DTD file loading, this is not activated by default to no allow
usage of schema files that checkstyle do not know
it is even security problem to allow files from outside.
|
public static final java.lang.String ENABLE_EXTERNAL_DTD_LOAD
public static final java.lang.String LOAD_EXTERNAL_DTD
public static final java.lang.String EXTERNAL_GENERAL_ENTITIES
public static final java.lang.String EXTERNAL_PARAMETER_ENTITIES
private LoadExternalDtdFeatureProvider()
public static void setFeaturesBySystemProperty(javax.xml.parsers.SAXParserFactory factory) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
factory - factory to be configured with special featuresorg.xml.sax.SAXException - if an error occursjavax.xml.parsers.ParserConfigurationException - if an error occursCopyright © 2001-2022. All Rights Reserved.