org.sblim.cimclient.internal.cimxml
public class CimXmlSerializer extends Object
Modifier and Type | Method and Description |
---|---|
static void |
serialize(OutputStream pOS,
Document pDoc,
boolean pPretty)
Serializes a given DOM document as (CIM-)XML to a given output stream.
|
static void |
serialize(OutputStream pOS,
Node pNode,
boolean pPretty)
Serializes a given DOM node as (CIM-)XML to a given output stream
|
public static void serialize(OutputStream pOS, Document pDoc, boolean pPretty) throws 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 lineIOException
- Whenever something goes wrongpublic static void serialize(OutputStream pOS, Node pNode, boolean pPretty) throws IOException
pOS
- The output streampNode
- The nodepPretty
- If true
the XML is nicely wrapped and indented,
otherwise it's all in one lineIOException
- Whenever something goes wrongCopyright © 2005, 2009 IBM Corporation. All Rights Reserved.