public static AppEngineDescriptor parse ( InputStream in ) throws IOException , SAXException { Preconditions . checkNotNull ( in , "Null input" ) ; try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory . newInstance ( ) ; documentBuilderFactory . setNamespaceAware ( true ) ; return new AppEngineDescriptor ( documentBuilderFactory . newDocumentBuilder ( ) . parse ( in ) ) ; } catch ( ParserConfigurationException exception ) { throw new SAXException ( "Cannot parse appengine-web.xml" , exception ) ; } }
Parses an appengine - web . xml file .