|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.io.MultiResourceLoader
public class MultiResourceLoader
Name: MultiResourceLoader
Description: A resource loader loading from multiple nested loaders.
It tries all nested loaders in the order they've beem added until the
desired resource has been loaded.
| Constructor Summary | |
|---|---|
MultiResourceLoader()
|
|
| Method Summary | |
|---|---|
void |
addResourceLoader(ResourceLoader resourceLoader)
Adds a resource loader. |
byte[] |
loadResource(String location)
Loads the resource according to the given location from the nested loaders. |
boolean |
resourceExists(String location)
Checks whether or not the desired resource exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiResourceLoader()
| Method Detail |
|---|
public void addResourceLoader(ResourceLoader resourceLoader)
resourceLoader - The resource loader to add.
public byte[] loadResource(String location)
throws IOException
loadResource in interface ResourceLoaderlocation - The location of the resource.
IOException - In case the loading of the resource failed.ResourceLoader.loadResource(java.lang.String)public boolean resourceExists(String location)
resourceExists in interface ResourceLoaderlocation - The location of the resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||