MCPcopy Index your code
hub / github.com/apache/tomcat / getParser

Method getParser

java/org/apache/tomcat/util/digester/Digester.java:780–796  ·  view source on GitHub ↗

Return the SAXParser we will use to parse the input stream. @return the SAXParser we will use to parse the input stream. If there is a problem creating the parser, return null .

()

Source from the content-addressed store, hash-verified

778 * <code>null</code>.
779 */
780 public SAXParser getParser() {
781
782 // Return the parser we already created (if any)
783 if (parser != null) {
784 return parser;
785 }
786
787 // Create a new parser
788 try {
789 parser = getFactory().newSAXParser();
790 } catch (Exception e) {
791 log.error(sm.getString("digester.createParserError"), e);
792 return null;
793 }
794
795 return parser;
796 }
797
798
799 /**

Callers 4

getPropertyMethod · 0.95
getXMLReaderMethod · 0.95
initMethod · 0.95
WebXmlParserMethod · 0.45

Calls 3

getFactoryMethod · 0.95
errorMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected