public class WebXmlParser extends Object implements EntityResolver, ErrorHandler
| Constructor and Description |
|---|
WebXmlParser(ClassLoader commonCL) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
protected Document |
parseStreamToXML(File webXmlFile)
Get a parsed XML DOM from the given inputstream.
|
InputSource |
resolveEntity(String publicName,
String url)
Implements the EntityResolver interface.
|
void |
warning(SAXParseException exception) |
public WebXmlParser(ClassLoader commonCL)
protected Document parseStreamToXML(File webXmlFile)
public InputSource resolveEntity(String publicName, String url) throws SAXException, IOException
resolveEntity in interface EntityResolverSAXExceptionIOExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerSAXExceptionCopyright © 2014. All rights reserved.