|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.calitha.resource.Resource
com.calitha.resource.BinaryResource
com.calitha.resource.WWWResource
public final class WWWResource
A WWWResource object represents a resource on the World Wide Web.
The location of the resource is specified by an URL. All protocols can be used that are supported by the URL class. You can also use the file: protocol to load local files.
When using a relative URL it will use the startup directory as the context.
| Constructor Summary | |
|---|---|
WWWResource(Locale locale,
String namespace,
String id,
String mimetype,
URL url)
Creates a new WWWResource object. |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Gets the content of the resource as a byte array. |
URL |
getUrl()
Gets the URL from which this resource is loaded. |
| Methods inherited from class com.calitha.resource.BinaryResource |
|---|
getText, getText |
| Methods inherited from class com.calitha.resource.Resource |
|---|
createKey, equals, getId, getKey, getLocale, getMimetype, getNamespace, hashCode, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WWWResource(Locale locale,
String namespace,
String id,
String mimetype,
URL url)
locale - localenamespace - namespaceid - idmimetype - mimetypeurl - url| Method Detail |
|---|
public URL getUrl()
public byte[] getBytes()
IResource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||