|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.module.ModuleResources
public abstract class ModuleResources
This class is an accessor for the resource data contained in a ModuleArchive.
| Constructor Summary | |
|---|---|
ModuleResources()
|
|
| Method Summary | |
|---|---|
abstract boolean |
contains(java.lang.String relativePath)
Check if the specified resource is available from this instance. |
abstract ModuleArchive |
getArchive()
Returns the archive that owns this instance. |
abstract java.net.URL |
getLocation()
Returns the location of this instance. |
abstract java.util.jar.Manifest |
getManifest()
Returns the manifest or null if none. |
abstract java.io.File |
getNativeLibrary(java.lang.String libraryName)
Returns a File referencing the specified native library or
null if not found. |
abstract java.security.ProtectionDomain |
getProtectionDomain(java.lang.ClassLoader loader)
Returns the ProtectionDomain for this instance and
the specified loader. |
abstract java.net.URL |
getResource(java.lang.String relativePath)
Returns the specified resource or null if not found. |
abstract java.nio.ByteBuffer |
getResourceData(java.lang.String relativePath)
Returns the data for the specified resource or null if not
found. |
abstract java.util.Set<java.lang.String> |
getResourcePaths()
Returns an unmodifiable set of paths to all contained resources. |
abstract long |
getStorageSize()
Returns the storage size of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleResources()
| Method Detail |
|---|
public abstract ModuleArchive getArchive()
public abstract java.net.URL getLocation()
public abstract boolean contains(java.lang.String relativePath)
relativePath - The relative path to the resource, which must
use '/' as the path separator and must
not have '/' as the first character.
true if the specified resource is available;
otherwise, return false.public abstract java.util.Set<java.lang.String> getResourcePaths()
'/' as the path separator and will
not have '/' as the first character.public abstract java.nio.ByteBuffer getResourceData(java.lang.String relativePath)
null if not
found.
relativePath - 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 relativePath)
null if not found.
relativePath - 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.io.File getNativeLibrary(java.lang.String libraryName)
File referencing the specified native library or
null if not found.
libraryName - The native library name.
null
if the library is not contained in this instance.public abstract java.util.jar.Manifest getManifest()
null if none.
null if none.public abstract java.security.ProtectionDomain getProtectionDomain(java.lang.ClassLoader loader)
ProtectionDomain for this instance and
the specified loader.
loader - The loader instance, which must be a constant for any given
ModuleResources instance.
ProtectionDomain.public abstract long getStorageSize()
|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||