|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.borland.starteam.xml.XMLDocument
A simple XML document object model (DOM), with methods for parsing and writing XML.
XMLElement| Method Summary | |
static XMLDocument |
build(byte[] source)
Parses the XML document in the given source bytes. |
static XMLDocument |
build(java.io.File source)
Parses the XML document in the given source file. |
static XMLDocument |
build(java.io.InputStream source)
Parses the XML document in the given source. |
XMLElement |
getRootElement()
Gets the root element of this document. |
void |
write(java.io.File out)
Writes an XML representation of this document to the given file. |
void |
write(java.io.OutputStream out)
Writes an XML representation of this document to the given output stream. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static XMLDocument build(java.io.File source)
throws java.io.FileNotFoundException,
java.io.IOException,
XMLException
source - An XML document.
XMLException
java.io.FileNotFoundException
java.io.IOException
public static XMLDocument build(byte[] source)
throws java.io.IOException,
XMLException
source - An XML document.
XMLException
java.io.IOException
public static XMLDocument build(java.io.InputStream source)
throws java.io.IOException,
XMLException
source - An XML document.
XMLException
java.io.IOException
public void write(java.io.File out)
throws java.io.FileNotFoundException,
java.io.IOException,
XMLException
out - The output file.
XMLException
java.io.FileNotFoundException
java.io.IOException
public void write(java.io.OutputStream out)
throws java.io.IOException,
XMLException
out - The output stream.
XMLException
java.io.IOExceptionpublic XMLElement getRootElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||