|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simBio.sim.dm.util.DOMHandler
public class DOMHandler
This class handle the DOM tree.
| Constructor Summary | |
|---|---|
DOMHandler()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
getCapsuledDocument(org.w3c.dom.Node node)
Adding a Node to a new instance of DOM Document. |
static java.io.InputStream |
getCapsuledInputStream(org.w3c.dom.Node node)
Adding a Node to a new instance of DOM Document and return document as input stream. |
static java.io.InputStream |
getDocumentAsInputStream(org.w3c.dom.Node node)
Get document as input stream. |
static java.io.BufferedReader |
getDocumentAsReader(org.w3c.dom.Node node)
Get document as buffered reader. |
static org.w3c.dom.Document |
newInstance()
Create a new instance of DOM Document. |
static org.w3c.dom.Document |
newInstance(java.lang.String qualifiedName)
Create a new instance of DOM Document. |
static org.w3c.dom.Document |
parseXML(java.io.InputStream input)
Parse XML-file. |
static void |
writeXML(org.w3c.dom.Document doc,
java.io.OutputStream output)
Write XML-file. |
static void |
writeXML(org.w3c.dom.Node node,
java.io.OutputStream output)
Write XML-file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMHandler()
| Method Detail |
|---|
public static org.w3c.dom.Document parseXML(java.io.InputStream input)
input - XML-file as InputStream
java.lang.RuntimeException - if error parsing XML
public static void writeXML(org.w3c.dom.Document doc,
java.io.OutputStream output)
doc - DOM Documentoutput - XML-file as OutputStreampublic static org.w3c.dom.Document newInstance()
public static org.w3c.dom.Document newInstance(java.lang.String qualifiedName)
qualifiedName - of the DOM Document
public static org.w3c.dom.Document getCapsuledDocument(org.w3c.dom.Node node)
node -
public static void writeXML(org.w3c.dom.Node node,
java.io.OutputStream output)
node - output - XML-file as OutputStreampublic static java.io.BufferedReader getDocumentAsReader(org.w3c.dom.Node node)
node -
public static java.io.InputStream getDocumentAsInputStream(org.w3c.dom.Node node)
node -
public static java.io.InputStream getCapsuledInputStream(org.w3c.dom.Node node)
node -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||