|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.io.HttpResourceLoader
public class HttpResourceLoader
Name: HttpResourceLoader
Description: A resource loader which loads resources from network using the http protocol.
| Constructor Summary | |
|---|---|
HttpResourceLoader()
Constructs a HttpResourceLoader instance with no specific attributes. |
|
HttpResourceLoader(String urlRoot)
Constructs a HttpResourceLoader instance with specific attributes. |
|
| Method Summary | |
|---|---|
byte[] |
loadResource(String location)
Loads a binary resource. |
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 HttpResourceLoader()
public HttpResourceLoader(String urlRoot)
urlRoot - The root location.| Method Detail |
|---|
public byte[] loadResource(String location)
throws IOException
ResourceLoader
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 | |||||||||