Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## calhoun.util
Class ResourceLoader

    java.lang.Object
      calhoun.util.ResourceLoader

    public class ResourceLoader

extends java.lang.Object

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

- Treating the resourceID as a file name and opening it in the file system
- Loading a class resource with the specified resourceID
- Loading a system resource with the specified resourceID

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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD