Package org.apache.commons.digester
Class ParserFeatureSetterFactory
- java.lang.Object
-
- org.apache.commons.digester.ParserFeatureSetterFactory
-
public class ParserFeatureSetterFactory extends java.lang.Object
Creates aSAXParser
based on the underlying parser. Allows logical properties depending on logical parser versions to be set.- Since:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
isXercesUsed
true
is Xerces is used.
-
Constructor Summary
Constructors Constructor Description ParserFeatureSetterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.parsers.SAXParser
newSAXParser(java.util.Properties properties)
Create a newSAXParser
-
-
-
Method Detail
-
newSAXParser
public static javax.xml.parsers.SAXParser newSAXParser(java.util.Properties properties) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
Create a newSAXParser
- Parameters:
properties
- (logical) properties to be set on parser- Returns:
- a
SAXParser
configured based on the underlying parser implementation. - Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
-