org.objectweb.jonas_ws.wsgen.utils
Class XMLSerializer

java.lang.Object
  extended byorg.objectweb.jonas_ws.wsgen.utils.XMLSerializer

public class XMLSerializer
extends java.lang.Object

Serialize a given DOM Document into an outpoutStream.

Author:
Guillaume Sauthier

Method Summary
static XMLSerializer getInstance(org.w3c.dom.Document d)
          Returns the unique XMLSerializer instance configured for the given Document
 void serialize(java.io.OutputStream os)
          Serialize the encapsulated Document into the OutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XMLSerializer getInstance(org.w3c.dom.Document d)
Returns the unique XMLSerializer instance configured for the given Document

Parameters:
d - Document to be formated
Returns:
configured XMLSerializer

serialize

public void serialize(java.io.OutputStream os)
               throws java.io.IOException
Serialize the encapsulated Document into the OutputStream

Parameters:
os - output stream
Throws:
java.io.IOException - When serialization fails