|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.resources.Resource
public abstract class Resource
Represents a resource that either has been or can be loaded using
a URI. There can only be one instance of
Resource having the same (as in URI's equals, not the identity)
URI.
Instances are created using ResourceFactory.createResource(URI).
| Field Summary | |
|---|---|
private java.net.URI |
resourceLocator
The URI used when loading this resource. |
| Constructor Summary | |
|---|---|
protected |
Resource()
|
(package private) |
Resource(java.net.URI resourceLocator)
Do not use directly. |
| Method Summary | |
|---|---|
java.net.URI |
getResourceLocator()
Returns the URI used for loading the resource. |
abstract void |
preload()
Preload the resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.net.URI resourceLocator
URI used when loading this resource.
| Constructor Detail |
|---|
protected Resource()
Resource(java.net.URI resourceLocator)
resourceLocator - The URI used when loading this
resource.ResourceFactory.createResource(URI)| Method Detail |
|---|
public abstract void preload()
public java.net.URI getResourceLocator()
URI used for loading the resource.
URI.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||