MCPcopy Create free account
hub / github.com/apache/tomcat / parse

Method parse

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

Parse the content of the specified file using this Digester. Returns the root element from the object stack (if any). @param file File containing the XML data to be parsed @return the root object @exception IOException if an input/output error occurs @exception SAXException if a parsing exceptio

(File file)

Source from the content-addressed store, hash-verified

1595 * @exception SAXException if a parsing exception occurs
1596 */
1597 public Object parse(File file) throws IOException, SAXException {
1598 configure();
1599 try (FileInputStream fis = new FileInputStream(file)) {
1600 InputSource input = new InputSource(fis);
1601 input.setSystemId("file://" + file.getAbsolutePath());
1602 getXMLReader().parse(input);
1603 }
1604 return root;
1605 }
1606
1607
1608 /**

Callers 15

parseMethod · 0.95
doTestValidateVersionMethod · 0.95
doTestToXmlMethod · 0.95
testWebappMethod · 0.95
testWebapp_2_2Method · 0.95
testWebapp_2_3Method · 0.95
testWebapp_2_4Method · 0.95
testWebapp_2_5Method · 0.95
testWebapp_3_0Method · 0.95
testWebapp_3_1Method · 0.95

Calls 3

configureMethod · 0.95
getXMLReaderMethod · 0.95
getAbsolutePathMethod · 0.45

Tested by 15

parseMethod · 0.76
doTestValidateVersionMethod · 0.76
doTestToXmlMethod · 0.76
testWebappMethod · 0.76
testWebapp_2_2Method · 0.76
testWebapp_2_3Method · 0.76
testWebapp_2_4Method · 0.76
testWebapp_2_5Method · 0.76
testWebapp_3_0Method · 0.76
testWebapp_3_1Method · 0.76