org.ocltf.utils
Class XmlResourceUtils

java.lang.Object
  extended byorg.ocltf.utils.XmlResourceUtils

public class XmlResourceUtils
extends java.lang.Object

Contains utilities for loading XML resources. Similar to FileResource except handles XML resources in a similar fashion.

Author:
Chad Brandon

Constructor Summary
XmlResourceUtils()
           
 
Method Summary
static java.net.URL getResource(java.lang.String resourceName)
          Retreives an XML resource from the class pacakge
static java.lang.String getResourceContentsAsString(java.lang.String resourceName)
          Loads the contents and then converts the contents to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlResourceUtils

public XmlResourceUtils()
Method Detail

getResource

public static java.net.URL getResource(java.lang.String resourceName)
Retreives an XML resource from the class pacakge

Parameters:
resourceName - - the name of the resource
Returns:
URL

getResourceContentsAsString

public static java.lang.String getResourceContentsAsString(java.lang.String resourceName)
Loads the contents and then converts the contents to a string.

Parameters:
resourceName -
Returns:


Copyright © 2003-2004 Chad Brandon. All Rights Reserved.