public final class JRXmlUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Document |
createDocument(Node sourceNode) |
static Document |
createDocument(Node sourceNode,
boolean isNamespaceAware)
Creates a document having a node as root.
|
static DocumentBuilder |
createDocumentBuilder() |
static DocumentBuilder |
createDocumentBuilder(boolean isNamespaceAware)
Creates a XML document builder.
|
static Document |
parse(File file) |
static Document |
parse(File file,
boolean isNamespaceAware)
Parses a file into a document.
|
static Document |
parse(InputSource is) |
static Document |
parse(InputSource is,
boolean isNamespaceAware)
Parses an input source into a document.
|
static Document |
parse(InputStream is) |
static Document |
parse(InputStream is,
boolean isNamespaceAware)
Parses an input stream into a XML document.
|
static Document |
parse(String uri) |
static Document |
parse(String uri,
boolean isNamespaceAware)
Parses a document specified by an URI.
|
static Document |
parse(URL url) |
static Document |
parse(URL url,
boolean isNamespaceAware)
Parses an URL stream as a XML document.
|
public static Document parse(InputSource is) throws JRException
JRExceptionpublic static Document parse(InputSource is, boolean isNamespaceAware) throws JRException
is - the input sourceJRExceptionpublic static Document parse(String uri) throws JRException
JRExceptionpublic static Document parse(String uri, boolean isNamespaceAware) throws JRException
uri - the URIJRExceptionpublic static Document parse(File file) throws JRException
JRExceptionpublic static Document parse(File file, boolean isNamespaceAware) throws JRException
file - the XML fileJRExceptionpublic static Document parse(InputStream is) throws JRException
JRExceptionpublic static Document parse(InputStream is, boolean isNamespaceAware) throws JRException
is - the input streamJRExceptionpublic static Document parse(URL url) throws JRException
JRExceptionpublic static Document parse(URL url, boolean isNamespaceAware) throws JRException
url - the URLJRExceptionpublic static DocumentBuilder createDocumentBuilder() throws JRException
JRExceptionpublic static DocumentBuilder createDocumentBuilder(boolean isNamespaceAware) throws JRException
JRExceptionpublic static Document createDocument(Node sourceNode) throws JRException
JRExceptionpublic static Document createDocument(Node sourceNode, boolean isNamespaceAware) throws JRException
sourceNode - the nodeJRExceptionCopyright © 2015. All rights reserved.