|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.module.ModuleDefinitionContent
public abstract class ModuleDefinitionContent
This class represents the content of the module definition.
ModuleDefinition
Constructor Summary | |
---|---|
protected |
ModuleDefinitionContent()
Constructor used by subclasses. |
Method Summary | |
---|---|
abstract CodeSource |
getCodeSource()
Returns the code source associated with the module definition. |
byte[] |
getEntryAsByteArray(String name)
Returns an entry in the module definition as byte array. |
abstract InputStream |
getEntryAsStream(String name)
Returns an entry in the module definition as an input stream. |
abstract List<String> |
getEntryNames()
Returns the list of the names of the entries in the module definition. |
abstract File |
getNativeLibrary(String libraryName)
Returns the path of the native library associated with the module definition. |
abstract boolean |
hasEntry(String name)
Checks if an entry exists in the module definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ModuleDefinitionContent()
Method Detail |
---|
public abstract boolean hasEntry(String name)
The entry's name is specified as '/' separated paths, with no leading '/'.
name
- entry's name.
public abstract InputStream getEntryAsStream(String name) throws IOException
The entry's name is specified as '/' separated paths, with no leading '/'.
name
- entry's name.
IOException
- if an I/O error occurs.public byte[] getEntryAsByteArray(String name) throws IOException
The entry's name is specified as '/' separated paths, with no leading '/'.
name
- entry's name.
IOException
- if an I/O error occurs.public abstract List<String> getEntryNames()
Each entry's name is in the form of '/' separated paths, with no leading '/'.
public abstract File getNativeLibrary(String libraryName)
libraryName
- the library name.
public abstract CodeSource getCodeSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |