|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.xml.DomUtil
public final class DomUtil
Utility class containing methods useful in parsing or building XML.
| Field Summary | |
|---|---|
static String |
XMLNS_NAMESPACE_URI
The namespace declaration to be assigned to the namespace definition in XML documents. |
| Method Summary | |
|---|---|
static LSInput |
createLSInput(InputStream inputStream,
String publicId,
String systemId)
Converts an input stream into an LSInput. |
static DOMImplementationLS |
getDOMImplementation()
Returns the DOM Implementation. |
static DOMImplementationRegistry |
getDOMRegistry()
Returns the DOM Implementation registry. |
static Document |
streamToDom(InputStream inputStream,
LSResourceResolver resourceResolver)
Converts an input stream to a generic DOM Document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XMLNS_NAMESPACE_URI
| Method Detail |
|---|
public static DOMImplementationRegistry getDOMRegistry()
throws IOException
IOException - For errors obtaining an instance of the registry.
public static DOMImplementationLS getDOMImplementation()
throws IOException
IOException - For errors obtaining an instance of the DOM Implementation registry.
public static Document streamToDom(InputStream inputStream,
LSResourceResolver resourceResolver)
throws IOException
inputStream - The stream to be parsed to a DOM document.resourceResolver - The resource resolver to use, which can be null.
This is useful for cases where we want (for example) to find a DTD locally instead of on the internet.
IOException - For errors parsing the document.
public static LSInput createLSInput(InputStream inputStream,
String publicId,
String systemId)
publicId - The public ID to attache to the input.systemId - The system ID to attach to the input.inputStream - The input stream to attach to the input.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||