|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectru.sstu.xml.DomUtil
public final class DomUtil
DomUtil class helps working with XML Documents.
| Method Summary | |
|---|---|
static Document |
create()
Creates new XML document. |
static Document |
open(InputStream input)
Generates DOM from given InputStream. |
static Document |
open(String fileName)
Generates DOM from given file. |
static void |
save(Node document,
OutputStream output)
Writes document to output stream. |
static void |
save(Node document,
String fileName)
Saves document to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Document create()
throws XmlException
XmlException - if cannot create document
public static Document open(InputStream input)
throws XmlException
input - InputStream to read from
XmlException - if cannot open document
public static Document open(String fileName)
throws XmlException
fileName - name of file to read
XmlException - if cannot open document
public static void save(Node document,
OutputStream output)
throws XmlException
document - document to be savedoutput - output stream to save to
XmlException - if cannot save document
public static void save(Node document,
String fileName)
throws XmlException
document - document to be savedfileName - file to save to
XmlException - if cannot save document
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||