org.decisiondeck.utils
Class XmlUtils

java.lang.Object
  extended by org.decisiondeck.utils.XmlUtils

public class XmlUtils
extends Object


Constructor Summary
XmlUtils()
           
 
Method Summary
static Map<String,String> getChildsTextContents(Node parent)
           
static Document newDocument(Document source)
           
static Node readNode(InputSupplier<InputStream> source)
           
static Node readNode(URL url)
           
static String toString(Node node)
           
static void write(String contents, File outFile)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlUtils

public XmlUtils()
Method Detail

readNode

public static Node readNode(URL url)
                     throws XmlException,
                            IOException
Throws:
XmlException
IOException

readNode

public static Node readNode(InputSupplier<InputStream> source)
                     throws IOException,
                            XmlException
Throws:
IOException
XmlException

toString

public static String toString(Node node)

newDocument

public static Document newDocument(Document source)

getChildsTextContents

public static Map<String,String> getChildsTextContents(Node parent)

write

public static void write(String contents,
                         File outFile)
                  throws IOException,
                         TransformerException
Throws:
IOException
TransformerException


Copyright © 2011. All Rights Reserved.