Which implementation of SAXParserFactory is used?



I am dealing with xml pasring. When I check code for SAXParserFactory, I see



public static SAXParserFactory newInstance() {
try {
return (SAXParserFactory) FactoryFinder.find(
/* The default property name according to the JAXP spec */
"javax.xml.parsers.SAXParserFactory",
/* The fallback implementation class name */
"com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl");
} catch (FactoryFinder.ConfigurationError e) {
throw new FactoryConfigurationError(e.getException(),
e.getMessage());
}
}


I am wondering which implementation of SAXParserFactory is actually returned? How can I check which implementation am I dealing with? Thanks in advance


No comments:

Post a Comment