Package org.apache.commons.digester
Class ParserFeatureSetterFactory
java.lang.Object
org.apache.commons.digester.ParserFeatureSetterFactory
Creates a
SAXParser
based on the underlying parser.
Allows logical properties depending on logical parser versions
to be set.- Since:
- 1.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SAXParser
newSAXParser
(Properties properties) Create a newSAXParser
-
Field Details
-
isXercesUsed
private static boolean isXercesUsedtrue
is Xerces is used.
-
-
Constructor Details
-
ParserFeatureSetterFactory
public ParserFeatureSetterFactory()
-
-
Method Details
-
newSAXParser
public static SAXParser newSAXParser(Properties properties) throws ParserConfigurationException, SAXException, SAXNotRecognizedException, SAXNotSupportedException Create a newSAXParser
- Parameters:
properties
- (logical) properties to be set on parser- Returns:
- a
SAXParser
configured based on the underlying parser implementation. - Throws:
ParserConfigurationException
SAXException
SAXNotRecognizedException
SAXNotSupportedException
-