Package org.sblim.wbem.cimxml
Class CimXmlSerializer
- java.lang.Object
-
- org.sblim.wbem.cimxml.CimXmlSerializer
-
public class CimXmlSerializer extends java.lang.Object
Class CimXmlSerializer implements a XML serializer for DOM documents that is specialized for CIM-XML. It might not be used as a generel purpose serializer since it doesn't support any DOM or XML features not required by CIM-XML.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
Method Detail
-
serialize
public static void serialize(java.io.OutputStream pOS, org.w3c.dom.Document pDoc, boolean pPretty) throws java.io.IOException
Serializes a given DOM document as (CIM-)XML to a given output stream- Parameters:
pOS
- The output streampDoc
- The documentpPretty
- Iftrue
the XML is nicely wrapped and indented, otherwise it's all in one line- Throws:
java.io.IOException
- Whenever something goes wrong
-
-