Package org.apache.tomcat.util.digester
Class GenericParser
- java.lang.Object
-
- org.apache.tomcat.util.digester.GenericParser
-
public class GenericParser extends Object
Create aSAXParser
configured to support XML Schema and DTD.- Since:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
JAXP_SCHEMA_LANGUAGE
The JAXP 1.2 property to set up the schemaLanguage used.protected static Logger
log
The Log to which all SAX event related logging calls will be made.
-
Constructor Summary
Constructors Constructor Description GenericParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SAXParser
newSAXParser(Properties properties)
Create aSAXParser
configured to support XML Scheman and DTD
-
-
-
Field Detail
-
log
protected static final Logger log
The Log to which all SAX event related logging calls will be made.
-
JAXP_SCHEMA_LANGUAGE
protected static final String JAXP_SCHEMA_LANGUAGE
The JAXP 1.2 property to set up the schemaLanguage used.- See Also:
- Constant Field Values
-
-
Method Detail
-
newSAXParser
public static SAXParser newSAXParser(Properties properties) throws ParserConfigurationException, SAXException, SAXNotRecognizedException
Create aSAXParser
configured to support XML Scheman and DTD- Parameters:
properties
- parser specific properties/features- Returns:
- an XML Schema/DTD enabled
SAXParser
- Throws:
ParserConfigurationException
SAXException
SAXNotRecognizedException
-
-