org.openxava.util
Class Resources

java.lang.Object
  extended by org.openxava.util.Resources

public class Resources
extends java.lang.Object

Author:
Javier Paniza

Constructor Summary
Resources()
           
 
Method Summary
static java.lang.String loadAsString(java.lang.Class baseClass, java.lang.String resourceName)
          Load a resource from the classpath and return it in String format.
static java.lang.String loadAsString(java.lang.String fileName)
          Load a resource from the file system and return it in String format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resources

public Resources()
Method Detail

loadAsString

public static java.lang.String loadAsString(java.lang.Class baseClass,
                                            java.lang.String resourceName)
                                     throws java.io.IOException
Load a resource from the classpath and return it in String format.

Parameters:
baseClass - Base class from start the search of resource.
resourceName -
Throws:
java.io.IOException

loadAsString

public static java.lang.String loadAsString(java.lang.String fileName)
                                     throws java.io.IOException
Load a resource from the file system and return it in String format.

Throws:
java.io.IOException