|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.module.ResourceSpace
public abstract class ResourceSpace
This class represents an accessor for a set of resources that may be either
locally defined, retrieved from delegate ResourceSpacess, or both.
| Constructor Summary | |
|---|---|
ResourceSpace()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Test if the specified object is equal to this instance, enforcing identity comparison. |
abstract java.util.Set<java.lang.String> |
getExportedPackages()
Returns an unmodifiable set of the package names exported by this ResourceSpace. |
abstract java.util.Set<java.lang.String> |
getImportedPackages()
Returns an unmodifiable set of the package names imported by this ResourceSpace. |
abstract java.lang.String |
getName()
Returns the name of this ClassSpace. |
abstract ResourceSpace |
getPackageProvider(java.lang.String packageName)
Returns the ResourceSpace that provides the specified
public package. |
abstract java.net.URL |
getResource(java.lang.String resourcePath)
Returns the first exported resource with the specified path. |
abstract java.nio.ByteBuffer |
getResourceData(java.lang.String resourcePath)
Returns the data for the specified resource or null if not
found. |
static java.lang.String |
getResourcePackageName(java.lang.String resourcePath)
Returns the package name from the specified resource path. |
abstract java.util.Enumeration<java.net.URL> |
getResources(java.lang.String resourcePath)
Returns all exported resources with the specified path. |
abstract Version |
getVersion()
Returns the version of this ClassSpace. |
int |
hashCode()
Returns the identity hash code
for this instance. |
java.lang.String |
toString()
Returns a string representation of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceSpace()
| Method Detail |
|---|
public static java.lang.String getResourcePackageName(java.lang.String resourcePath)
resourcePath - The '/' separated relative resource path,
which must not have a leading '/'.
'.' separated package name.public abstract java.lang.String getName()
ClassSpace.
public abstract Version getVersion()
ClassSpace.
public abstract java.util.Set<java.lang.String> getExportedPackages()
ResourceSpace.
public abstract java.util.Set<java.lang.String> getImportedPackages()
ResourceSpace.
public abstract ResourceSpace getPackageProvider(java.lang.String packageName)
ResourceSpace that provides the specified
public package.
packageName - The exported package name.
null if package is not visible.public abstract java.nio.ByteBuffer getResourceData(java.lang.String resourcePath)
null if not
found.
resourcePath - The relative path to the resource, which must
use '/' as the path separator and must
not have '/' as the first character.
null if the resource is not
contained in this instance.public abstract java.net.URL getResource(java.lang.String resourcePath)
resourcePath - The '/' separated relative resource path,
which must not have a leading '/'.
null if not found.
public abstract java.util.Enumeration<java.net.URL> getResources(java.lang.String resourcePath)
throws java.io.IOException
resourcePath - The '/' separated relative resource path,
which must not have a leading '/'.
java.io.IOException - If an I/O error occurs. TODO: remove and log exception??public final boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The object to compare to.
true if other is the same as this
instance; otherwise, returns false.public final int hashCode()
identity hash code
for this instance.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||