|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ucar.xml.Serializer
Utility class for writing XML to output. It contains only static methods.
| Constructor Summary | |
Serializer()
|
|
| Method Summary | |
static void |
DOMout(org.w3c.dom.Element root)
Method to write a DOM document to System.out |
static void |
DOMtoFile(org.w3c.dom.Element root,
java.lang.String outputFile)
Method to write a DOM document to file |
static void |
JDOMout(org.jdom.Document jdoc)
Method to write a JDOM document to System.out |
static void |
JDOMout(java.lang.String xml)
Method to deserialize a JDOM document from a String and write it to System.out |
static void |
JDOMtoFile(org.jdom.Document jdoc,
java.lang.String outputFile)
Method to write a JDOM document to file |
static void |
JDOMtoFile(java.lang.String xml,
java.lang.String outputFile)
Method to deserialize a JDOM document from a String and write it to a file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Serializer()
| Method Detail |
public static void DOMtoFile(org.w3c.dom.Element root,
java.lang.String outputFile)
throws java.io.IOException
root - the root element of the DOM documentoutputFile - the intended xml output file
IOException
public static void DOMout(org.w3c.dom.Element root)
throws java.io.IOException
root - the root element of the DOM document
IOException
public static void JDOMtoFile(org.jdom.Document jdoc,
java.lang.String outputFile)
throws java.io.IOException
jdoc - the JDOM documentoutputFile - the intended xml output file
IOException
public static void JDOMtoFile(java.lang.String xml,
java.lang.String outputFile)
throws java.io.IOException,
org.jdom.JDOMException
xml - the String containig the serialized xml documentoutputFile - the intended xml output file
IOException
JDOMException
public static void JDOMout(org.jdom.Document jdoc)
throws java.io.IOException
jdoc - the JDOM document
IOException
public static void JDOMout(java.lang.String xml)
throws java.io.IOException,
org.jdom.JDOMException
xml - the String containig the serialized xml document
IOException
JDOMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||