public final class JRXmlUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_DOCUMENT_BUILDER_FACTORY_CREATION_FAILURE |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_DOCUMENT_PARSING_FAILURE |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Document |
createDocument(org.w3c.dom.Node sourceNode) |
static org.w3c.dom.Document |
createDocument(org.w3c.dom.Node sourceNode,
boolean isNamespaceAware)
Creates a document having a node as root.
|
static javax.xml.parsers.DocumentBuilder |
createDocumentBuilder() |
static javax.xml.parsers.DocumentBuilder |
createDocumentBuilder(boolean isNamespaceAware)
Creates a XML document builder.
|
static org.w3c.dom.Document |
parse(java.io.File file) |
static org.w3c.dom.Document |
parse(java.io.File file,
boolean isNamespaceAware)
Parses a file into a document.
|
static org.w3c.dom.Document |
parse(org.xml.sax.InputSource is) |
static org.w3c.dom.Document |
parse(org.xml.sax.InputSource is,
boolean isNamespaceAware)
Parses an input source into a document.
|
static org.w3c.dom.Document |
parse(java.io.InputStream is) |
static org.w3c.dom.Document |
parse(java.io.InputStream is,
boolean isNamespaceAware)
Parses an input stream into a XML document.
|
static org.w3c.dom.Document |
parse(java.lang.String uri) |
static org.w3c.dom.Document |
parse(java.lang.String uri,
boolean isNamespaceAware)
Parses a document specified by an URI.
|
static org.w3c.dom.Document |
parse(java.net.URL url) |
static org.w3c.dom.Document |
parse(java.net.URL url,
boolean isNamespaceAware)
Parses an URL stream as a XML document.
|
public static final java.lang.String EXCEPTION_MESSAGE_KEY_DOCUMENT_BUILDER_FACTORY_CREATION_FAILURE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_DOCUMENT_PARSING_FAILURE
public static org.w3c.dom.Document parse(org.xml.sax.InputSource is) throws JRException
JRException
public static org.w3c.dom.Document parse(org.xml.sax.InputSource is, boolean isNamespaceAware) throws JRException
is
- the input sourceJRException
public static org.w3c.dom.Document parse(java.lang.String uri) throws JRException
JRException
public static org.w3c.dom.Document parse(java.lang.String uri, boolean isNamespaceAware) throws JRException
uri
- the URIJRException
public static org.w3c.dom.Document parse(java.io.File file) throws JRException
JRException
public static org.w3c.dom.Document parse(java.io.File file, boolean isNamespaceAware) throws JRException
file
- the XML fileJRException
public static org.w3c.dom.Document parse(java.io.InputStream is) throws JRException
JRException
public static org.w3c.dom.Document parse(java.io.InputStream is, boolean isNamespaceAware) throws JRException
is
- the input streamJRException
public static org.w3c.dom.Document parse(java.net.URL url) throws JRException
JRException
public static org.w3c.dom.Document parse(java.net.URL url, boolean isNamespaceAware) throws JRException
url
- the URLJRException
public static javax.xml.parsers.DocumentBuilder createDocumentBuilder() throws JRException
JRException
public static javax.xml.parsers.DocumentBuilder createDocumentBuilder(boolean isNamespaceAware) throws JRException
JRException
public static org.w3c.dom.Document createDocument(org.w3c.dom.Node sourceNode) throws JRException
JRException
public static org.w3c.dom.Document createDocument(org.w3c.dom.Node sourceNode, boolean isNamespaceAware) throws JRException
sourceNode
- the nodeJRException
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com