org.processmining.exporting.bpel4ws
Class XMLBackend

java.lang.Object
  extended by org.processmining.exporting.bpel4ws.XMLBackend

public class XMLBackend
extends java.lang.Object

This provides methods for writing an XML document to a file.

Author:
Kristian Bisgaard Lassen

Constructor Summary
XMLBackend()
           
 
Method Summary
static void writeXMLToOutputStream(java.io.OutputStream out, org.jdom.Document document)
          Writes an XML document to an output stream
static java.lang.String xmlToString(org.jdom.Document document)
          Converts a JDOM representation of an XML tree into an equivalent string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLBackend

public XMLBackend()
Method Detail

writeXMLToOutputStream

public static void writeXMLToOutputStream(java.io.OutputStream out,
                                          org.jdom.Document document)
                                   throws java.io.IOException
Writes an XML document to an output stream

Parameters:
out - - An output stream
document - - An XML document
Throws:
java.io.IOException - - Thrown if the document can not be written to the output stream

xmlToString

public static java.lang.String xmlToString(org.jdom.Document document)
                                    throws java.io.IOException
Converts a JDOM representation of an XML tree into an equivalent string representation

Parameters:
document - - The document
Returns:
A string representation of the document
Throws:
java.io.IOException - - Thrown if conversion fails