|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jasper.xmlparser.ParserUtils
public class ParserUtils
XML parsing utilities for processing web application deployment descriptor and tag library descriptor files. FIXME - make these use a separate class loader for the parser to be used.
Field Summary | |
---|---|
static boolean |
validating
|
Constructor Summary | |
---|---|
ParserUtils()
|
Method Summary | |
---|---|
protected TreeNode |
convert(TreeNode parent,
Node node)
Create and return a TreeNode that corresponds to the specified Node, including processing all of the attributes and children nodes. |
TreeNode |
parseXMLDocument(String location,
InputSource is)
Parse the specified XML document, and return a TreeNode
that corresponds to the root node of the document tree. |
TreeNode |
parseXMLDocument(String uri,
InputStream is)
Parse the specified XML document, and return a TreeNode
that corresponds to the root node of the document tree. |
static void |
setEntityResolver(EntityResolver er)
Set the EntityResolver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean validating
Constructor Detail |
---|
public ParserUtils()
Method Detail |
---|
public TreeNode parseXMLDocument(String location, InputSource is) throws JasperException
TreeNode
that corresponds to the root node of the document tree.
location
- Location (eg URI) of the XML document being parsedis
- Input source containing the deployment descriptor
JasperException
- if an input/output error occurs
JasperException
- if a parsing error occurspublic TreeNode parseXMLDocument(String uri, InputStream is) throws JasperException
TreeNode
that corresponds to the root node of the document tree.
uri
- URI of the XML document being parsedis
- Input stream containing the deployment descriptor
JasperException
- if an input/output error occurs
JasperException
- if a parsing error occurspublic static void setEntityResolver(EntityResolver er)
er
- EntityResolver to use.protected TreeNode convert(TreeNode parent, Node node)
parent
- The parent TreeNode (if any) for the new TreeNodenode
- The XML document Node to be converted
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |