|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.util.resource.OrResourceLoader
public class OrResourceLoader
This class represents a ResourceLoader that loads resource using a primary ResourceLoader object, and tries an alternative ResourceLoader if the primary doesn't find a resource.
| Constructor Summary | |
|---|---|
OrResourceLoader(ResourceLoader primary,
ResourceLoader alt)
Create an OrResourceLoader object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
ResourceLoader |
getAlternative()
Get the alternative resource. |
ResourceLoader |
getPrimary()
Get the primary resource. |
java.net.URL |
getResource(java.lang.String path)
Get the URL that identifies the resource. |
java.io.InputStream |
getResourceAsStream(java.lang.String path)
Create a InputStream for a resource. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OrResourceLoader(ResourceLoader primary,
ResourceLoader alt)
primary - the primary ResourceLoader.alt - the alternative ResourceLoader.| Method Detail |
|---|
public java.net.URL getResource(java.lang.String path)
ResourceLoader
getResource in interface ResourceLoaderpath - the resource path.
public java.io.InputStream getResourceAsStream(java.lang.String path)
ResourceLoader
getResourceAsStream in interface ResourceLoaderpath - the resource path.
public ResourceLoader getPrimary()
public ResourceLoader getAlternative()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||