public class ParserUtils extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
validating |
Constructor and Description |
---|
ParserUtils() |
Modifier and Type | Method and Description |
---|---|
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,
InputStream is)
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
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 descriptorJasperException
- if an input/output error occurs or 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 descriptorJasperException
- if an input/output error occurs or parsing error occursprotected TreeNode convert(TreeNode parent, Node node)
parent
- The parent TreeNode (if any) for the new TreeNodenode
- The XML document Node to be convertedCopyright © 2000–2020 Apache Software Foundation. All rights reserved.