org.webtree.data
Class XmlUtils

java.lang.Object
  |
  +--org.webtree.data.XmlUtils

public class XmlUtils
extends java.lang.Object


Constructor Summary
XmlUtils()
           
 
Method Summary
static org.jdom.Document getDocument(java.io.File f)
          Pulls an xml resources from the file system
static org.jdom.Document getDocument(java.lang.String resourceName)
          Pulls an xml resource from the classpath, builds a JDom document for it
static java.io.InputStream getInputStream(java.lang.String resourceName)
          Pulls a resource from the classpath, gives you an InputStream
 
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

getDocument

public static org.jdom.Document getDocument(java.lang.String resourceName)
Pulls an xml resource from the classpath, builds a JDom document for it

Parameters:
resourceName - - name of resource on classpath
Returns:
Document

getDocument

public static org.jdom.Document getDocument(java.io.File f)
Pulls an xml resources from the file system

Parameters:
f - - File on file system
Returns:
Document

getInputStream

public static java.io.InputStream getInputStream(java.lang.String resourceName)
Pulls a resource from the classpath, gives you an InputStream

Parameters:
resourceName -
Returns:
InputStream constaining resource content