|
||||||||||
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 Document |
getCapsuledDocument(Node node)
Adding a Node to a new instance of DOM Document. |
static InputStream |
getCapsuledInputStream(Node node)
Adding a Node to a new instance of DOM Document and return document as input stream. |
static InputStream |
getDocumentAsInputStream(Node node)
Get document as input stream. |
static BufferedReader |
getDocumentAsReader(Node node)
Get document as buffered reader. |
static Document |
newInstance()
Create a new instance of DOM Document. |
static Document |
newInstance(String qualifiedName)
Create a new instance of DOM Document. |
static Document |
parseXML(InputStream input)
Parse XML-file. |
static void |
writeXML(Document doc,
OutputStream output)
Write XML-file. |
static void |
writeXML(Node node,
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 Document parseXML(InputStream input)
input
- XML-file as InputStream
RuntimeException
- if error parsing XMLpublic static void writeXML(Document doc, OutputStream output)
doc
- DOM Documentoutput
- XML-file as OutputStreampublic static Document newInstance()
public static Document newInstance(String qualifiedName)
qualifiedName
- of the DOM Document
public static Document getCapsuledDocument(Node node)
node
-
public static void writeXML(Node node, OutputStream output)
node
- output
- XML-file as OutputStreampublic static BufferedReader getDocumentAsReader(Node node)
node
-
public static InputStream getDocumentAsInputStream(Node node)
node
-
public static InputStream getCapsuledInputStream(Node node)
node
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |