com.clickntap.utils
Class XMLUtils

java.lang.Object
  extended by com.clickntap.utils.XMLUtils

public class XMLUtils
extends Object


Constructor Summary
XMLUtils()
           
 
Method Summary
static org.dom4j.Document copyFrom(File file)
           
static org.dom4j.Document copyFrom(File file, boolean validating)
           
static org.dom4j.Document copyFrom(InputStream in)
           
static org.dom4j.Document copyFrom(InputStream in, boolean validating)
           
static org.dom4j.Document copyFrom(String file)
           
static org.dom4j.Document copyFrom(String fileName, boolean validating)
           
static void copyTo(org.dom4j.Document doc, File file)
           
static void copyTo(org.dom4j.Document doc, OutputStream out)
           
static void copyTo(org.dom4j.Document doc, String file)
           
static String toString(org.dom4j.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtils

public XMLUtils()
Method Detail

copyTo

public static void copyTo(org.dom4j.Document doc,
                          OutputStream out)
                   throws UnsupportedEncodingException,
                          IOException
Throws:
UnsupportedEncodingException
IOException

copyTo

public static void copyTo(org.dom4j.Document doc,
                          File file)
                   throws UnsupportedEncodingException,
                          IOException
Throws:
UnsupportedEncodingException
IOException

copyTo

public static void copyTo(org.dom4j.Document doc,
                          String file)
                   throws UnsupportedEncodingException,
                          IOException
Throws:
UnsupportedEncodingException
IOException

copyFrom

public static org.dom4j.Document copyFrom(String file)
                                   throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

copyFrom

public static org.dom4j.Document copyFrom(File file)
                                   throws org.dom4j.DocumentException,
                                          MalformedURLException
Throws:
org.dom4j.DocumentException
MalformedURLException

copyFrom

public static org.dom4j.Document copyFrom(InputStream in)
                                   throws org.dom4j.DocumentException,
                                          MalformedURLException
Throws:
org.dom4j.DocumentException
MalformedURLException

copyFrom

public static org.dom4j.Document copyFrom(String fileName,
                                          boolean validating)
                                   throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

copyFrom

public static org.dom4j.Document copyFrom(File file,
                                          boolean validating)
                                   throws org.dom4j.DocumentException,
                                          MalformedURLException
Throws:
org.dom4j.DocumentException
MalformedURLException

copyFrom

public static org.dom4j.Document copyFrom(InputStream in,
                                          boolean validating)
                                   throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

toString

public static String toString(org.dom4j.Element element)
                       throws UnsupportedEncodingException,
                              IOException
Throws:
UnsupportedEncodingException
IOException


Copyright © 2014. All rights reserved.