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 SAXParsernewSAXParser(Properties properties) Create a newSAXParser
-
Field Details
-
isXercesUsed
private static boolean isXercesUsedtrueis 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
SAXParserconfigured based on the underlying parser implementation. - Throws:
ParserConfigurationExceptionSAXExceptionSAXNotRecognizedExceptionSAXNotSupportedException
-