org.ow2.dragon.util
Class XMLPrettyPrinter

java.lang.Object
  extended by org.ow2.dragon.util.XMLPrettyPrinter

public class XMLPrettyPrinter
extends java.lang.Object

An util class to prettify XML document

Author:
ofabre - eBM WebSourcing

Constructor Summary
XMLPrettyPrinter()
           
 
Method Summary
static void prettify(java.io.InputStream in, java.io.OutputStream out)
          Prettify the xml input stream into the output stream.
static void prettify(org.w3c.dom.Node node, java.io.OutputStream out)
          Prettify the node into the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLPrettyPrinter

public XMLPrettyPrinter()
Method Detail

prettify

public static void prettify(org.w3c.dom.Node node,
                            java.io.OutputStream out)
                     throws java.lang.Exception
Prettify the node into the output stream.

Parameters:
node -
out -
Throws:
java.lang.Exception

prettify

public static void prettify(java.io.InputStream in,
                            java.io.OutputStream out)
                     throws java.lang.Exception
Prettify the xml input stream into the output stream.

Parameters:
node -
out -
Throws:
java.lang.Exception


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.