|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.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.
| 构造方法摘要 | |
|---|---|
ParserUtils()
|
|
| 方法摘要 | |
|---|---|
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 uri,
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,
InputSource is,
boolean validate)
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. |
TreeNode |
parseXMLDocument(String uri,
InputStream is,
boolean validate)
Parse the specified XML document, and return a TreeNode
that corresponds to the root node of the document tree. |
static void |
setDtdResourcePrefix(String prefix)
Sets the path prefix URL for .dtd resources |
static void |
setEntityResolver(EntityResolver er)
|
static void |
setSchemaResourcePrefix(String prefix)
Sets the path prefix URL for .xsd resources |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ParserUtils()
| 方法详细信息 |
|---|
public static void setEntityResolver(EntityResolver er)
public static void setSchemaResourcePrefix(String prefix)
public static void setDtdResourcePrefix(String prefix)
public TreeNode parseXMLDocument(String uri,
InputSource is)
throws JasperException
TreeNode
that corresponds to the root node of the document tree.
uri - URI of the XML document being parsedis - Input source containing the deployment descriptor
JasperException - if an I/O or parsing error has occurred
public TreeNode parseXMLDocument(String uri,
InputSource is,
boolean validate)
throws JasperException
TreeNode
that corresponds to the root node of the document tree.
uri - URI of the XML document being parsedis - Input source containing the deployment descriptorvalidate - true if the XML document needs to be validated against
its DTD or schema, false otherwise
JasperException - if an I/O or parsing error has occurred
public 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 I/O or parsing error has occurred
public TreeNode parseXMLDocument(String uri,
InputStream is,
boolean validate)
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 descriptorvalidate - true if the XML document needs to be validated against
its DTD or schema, false otherwise
JasperException - if an I/O or parsing error has occurred
protected TreeNode convert(TreeNode parent,
Node node)
parent - The parent TreeNode (if any) for the new TreeNodenode - The XML document Node to be converted
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||