calhoun.util
Class ResourceLoader

java.lang.Object
  extended by calhoun.util.ResourceLoader

public class ResourceLoader
extends java.lang.Object

The ResourceLoader loads for resources by trying each of the following mechanisms:


Nested Class Summary
static interface ResourceLoader.ResourceFinder
           
 
Constructor Summary
ResourceLoader()
           
 
Method Summary
static java.io.InputStream openInputStream(java.lang.Class cls, java.lang.String resourceID)
          Opens an InputStream by trying each of the defined ResourceFinders.
static java.lang.String openTextResource(java.lang.Class cls, java.lang.String resourceId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader

public ResourceLoader()
Method Detail

openInputStream

public static java.io.InputStream openInputStream(java.lang.Class cls,
                                                  java.lang.String resourceID)
Opens an InputStream by trying each of the defined ResourceFinders.


openTextResource

public static java.lang.String openTextResource(java.lang.Class cls,
                                                java.lang.String resourceId)