de.matthias_burbach.deputy.core.util
Class XmlUtils

java.lang.Object
  extended byde.matthias_burbach.deputy.core.util.XmlUtils

public final class XmlUtils
extends java.lang.Object

Author:
Matthias Burbach

Method Summary
static org.jdom.Document loadXmlDocument(java.io.InputStream is)
           
static org.jdom.Document loadXmlDocument(java.lang.String url)
           
static void saveXmlDocument(java.lang.String pathAndFile, org.jdom.Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadXmlDocument

public static org.jdom.Document loadXmlDocument(java.io.InputStream is)
                                         throws java.lang.Exception
Parameters:
is - The input stream to load the document from.
Returns:
The document loaded.
Throws:
java.lang.Exception - if anything goes unexpectedly wrong

loadXmlDocument

public static org.jdom.Document loadXmlDocument(java.lang.String url)
                                         throws java.lang.Exception
Parameters:
url - The URL to load the document from.
Returns:
The document loaded.
Throws:
java.lang.Exception - if anything goes unexpectedly wrong

saveXmlDocument

public static void saveXmlDocument(java.lang.String pathAndFile,
                                   org.jdom.Document document)
                            throws java.lang.Exception
Parameters:
pathAndFile - The path and file name to save the document under.
document - The document to save.
Throws:
java.lang.Exception - if anything goes unexpectedly wrong


Copyright © 2005-2007 . All Rights Reserved.