|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.deploy.shared.JarArchive
public abstract class JarArchive
This abstract class contains all common implementation of the Archive/WritableArchive interfaces for Jar files
| Field Summary | |
|---|---|
protected Map<Class<?>,Object> |
extraData
|
protected ReadableArchive |
parentArchive
|
| Constructor Summary | |
|---|---|
JarArchive()
|
|
| Method Summary | ||
|---|---|---|
Enumeration<String> |
entries(String prefix)
Returns an enumeration of the module file entries with the specified prefix. |
|
boolean |
exists(String name)
Returns the existence of the given entry name The file name must be relative to the root of the module. |
|
|
getExtraData(Class<U> dataType)
Returns any data that could have been calculated as part of the descriptor loading. |
|
protected abstract JarEntry |
getJarEntry(String entryName)
|
|
String |
getName()
Returns the name portion of the archive's URI. |
|
ReadableArchive |
getParentArchive()
get the parent archive of this archive |
|
boolean |
isDirectory(String name)
Returns true if the entry is a directory or a plain file |
|
|
removeExtraData(Class<U> dataType)
|
|
|
setExtraData(Class<U> dataType,
U instance)
|
|
void |
setParentArchive(ReadableArchive parentArchive)
set the parent archive for this archive |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.api.deployment.archive.Archive |
|---|
close, entries, getArchiveSize, getDirectories, getManifest, getURI |
| Field Detail |
|---|
protected ReadableArchive parentArchive
protected Map<Class<?>,Object> extraData
| Constructor Detail |
|---|
public JarArchive()
| Method Detail |
|---|
public Enumeration<String> entries(String prefix)
entries in interface Archiveprefix - the prefix of entries to be included
public String getName()
For JarArhive the name is all of the path that follows the last slash up to but not including the last dot.
Here are some example archive names for the specified JarArchive paths:
getName in interface Archiveprotected abstract JarEntry getJarEntry(String entryName)
public boolean exists(String name)
throws IOException
name - the file name relative to the root of the module. * @return the existence the given entry name.
IOExceptionpublic boolean isDirectory(String name)
isDirectory in interface Archivename - name is one of the entries returned by Archive.entries()
public void setParentArchive(ReadableArchive parentArchive)
parentArchive - the parent archivepublic ReadableArchive getParentArchive()
public <U> U getExtraData(Class<U> dataType)
dataType - the type of the extra data
public <U> void setExtraData(Class<U> dataType,
U instance)
public <U> void removeExtraData(Class<U> dataType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||