|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vhosting.netconf.messages.DOMUtils
public class DOMUtils
This class provides some methods for manipulating XML documents used to handle the protocol.
Method Summary | |
---|---|
static void |
dump(org.w3c.dom.Document doc,
java.io.OutputStream out)
Dump a DOM XML Document to an output stream. |
static org.w3c.dom.Document |
newDocument()
Create a new empty DOM XML Document. |
static org.w3c.dom.Document |
newDocument(java.io.InputStream in)
Create a new DOM XML Document from an input stream. |
static boolean |
validate(org.w3c.dom.Document doc,
java.net.URL xsd)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.w3c.dom.Document newDocument()
public static org.w3c.dom.Document newDocument(java.io.InputStream in) throws org.xml.sax.SAXException, java.io.IOException
in
- The input stream.
org.xml.sax.SAXException
- Throw this exception if there are parsing troubles.
java.io.IOException
- Throw this exception if there are reading troubles.public static void dump(org.w3c.dom.Document doc, java.io.OutputStream out) throws java.io.IOException
doc
- The DOM XML Document.out
- The output stream.
java.io.IOException
- Throw this exception if there are writing troubles.public static boolean validate(org.w3c.dom.Document doc, java.net.URL xsd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |