|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.cimclient.internal.cimxml.CimXmlSerializer
public class CimXmlSerializer
Class CimXmlSerializer implements a XML serializer for DOM documents that is specialized for CIM-XML. It might not be used as a general purpose serializer since it doesn't support any DOM or XML features not required by CIM-XML.
Method Summary | |
---|---|
static void |
serialize(java.io.OutputStream pOS,
org.w3c.dom.Document pDoc,
boolean pPretty)
Serializes a given DOM document as (CIM-)XML to a given output stream. |
static void |
serialize(java.io.OutputStream pOS,
org.w3c.dom.Node pNode,
boolean pPretty)
Serializes a given DOM node as (CIM-)XML to a given output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void serialize(java.io.OutputStream pOS, org.w3c.dom.Document pDoc, boolean pPretty) throws java.io.IOException
<?xml version="1.0" encoding="UTF-8"?>
and then serializes the document node. If you want to suppress this
header just call serialize(OutputStream, Node, boolean)
on the
document node.
pOS
- The output streampDoc
- The documentpPretty
- If true
the XML is nicely wrapped and indented,
otherwise it's all in one line
java.io.IOException
- Whenever something goes wrongpublic static void serialize(java.io.OutputStream pOS, org.w3c.dom.Node pNode, boolean pPretty) throws java.io.IOException
pOS
- The output streampNode
- The nodepPretty
- If true
the XML is nicely wrapped and indented,
otherwise it's all in one line
java.io.IOException
- Whenever something goes wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |