public final class ParserFactory
extends java.lang.Object
SAXParserFactory objects| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FEATURE_DISALLOW_DOCTYPE_DECL
The Constant for the key of the feature to disallow doctype declarations
|
static java.lang.String |
FEATURE_EXTERNAL_GENERAL_ENTITIES
The Constant for the key of the feature to allow external general entities
|
| Constructor and Description |
|---|
ParserFactory() |
| Modifier and Type | Method and Description |
|---|---|
static javax.xml.parsers.SAXParserFactory |
newSAXParserFactory(boolean withoutParser)
Factory method for create a new
SAXParserFactory with a flag for deactivate the
parser for protection from xml-bomb |
public static final java.lang.String FEATURE_DISALLOW_DOCTYPE_DECL
public static final java.lang.String FEATURE_EXTERNAL_GENERAL_ENTITIES
public static javax.xml.parsers.SAXParserFactory newSAXParserFactory(boolean withoutParser)
throws org.xml.sax.SAXNotSupportedException,
org.xml.sax.SAXNotRecognizedException,
javax.xml.parsers.ParserConfigurationException
SAXParserFactory with a flag for deactivate the
parser for protection from xml-bombwithoutParser - the without parserSAXParserFactory objectorg.xml.sax.SAXNotSupportedException - is thrown if the SAX operation not supportedorg.xml.sax.SAXNotRecognizedException - is thrown if the SAX have unrecognized identifierjavax.xml.parsers.ParserConfigurationException - is thrown if a serious configuration error is indicated