public class WebXmlParser
extends java.lang.Object
implements org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Constructor and Description |
---|
WebXmlParser(java.lang.ClassLoader commonCL) |
Modifier and Type | Method and Description |
---|---|
void |
error(org.xml.sax.SAXParseException exception) |
void |
fatalError(org.xml.sax.SAXParseException exception) |
protected org.w3c.dom.Document |
parseStreamToXML(java.io.File webXmlFile)
Get a parsed XML DOM from the given inputstream.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicName,
java.lang.String url)
Implements the EntityResolver interface.
|
void |
warning(org.xml.sax.SAXParseException exception) |
protected org.w3c.dom.Document parseStreamToXML(java.io.File webXmlFile)
public org.xml.sax.InputSource resolveEntity(java.lang.String publicName, java.lang.String url) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
java.io.IOException
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
Copyright © 2013. All Rights Reserved.