|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.api.deployment.archive.ReadableArchiveAdapter
public abstract class ReadableArchiveAdapter
A lot of methods need to be written in order to implement ReadableArchive. The no-op methods are implemented here to make ScatteredWar easier to understand.
| Constructor Summary | |
|---|---|
ReadableArchiveAdapter()
|
|
| Method Summary | ||
|---|---|---|
void |
close()
closes this archive and releases all resources |
|
boolean |
delete()
deletes the archive |
|
Enumeration<String> |
entries()
Returns an enumeration of the module file entries. |
|
Enumeration<String> |
entries(String prefix)
Returns an enumeration of the module file entries with the specified prefix. |
|
boolean |
exists()
|
|
long |
getArchiveSize()
Returns the size of the archive. |
|
Collection<String> |
getDirectories()
Returns the enumeration of first level directories in this archive |
|
long |
getEntrySize(String arg0)
Returns the entry size for a given entry name or 0 if not known |
|
|
getExtraData(Class<U> dataType)
Returns any data that could have been calculated as part of the descriptor loading. |
|
ReadableArchive |
getParentArchive()
get the parent archive of this archive |
|
ReadableArchive |
getSubArchive(String arg0)
Returns an instance of this archive abstraction for an embedded archive within this archive. |
|
boolean |
isDirectory(String name)
Returns true if the entry is a directory or a plain file |
|
void |
open(URI arg0)
Open an abstract archive |
|
|
removeExtraData(Class<U> dataType)
|
|
boolean |
renameTo(String arg0)
rename the archive |
|
|
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.ReadableArchive |
|---|
exists, getEntry |
| Methods inherited from interface org.glassfish.api.deployment.archive.Archive |
|---|
getManifest, getName, getURI |
| Constructor Detail |
|---|
public ReadableArchiveAdapter()
| Method Detail |
|---|
public long getEntrySize(String arg0)
ReadableArchive
getEntrySize in interface ReadableArchivearg0 - the entry name
public void open(URI arg0)
throws IOException
ReadableArchive
open in interface ReadableArchivearg0 - path to the archive
IOException
public ReadableArchive getSubArchive(String arg0)
throws IOException
ReadableArchive
getSubArchive in interface ReadableArchivearg0 - is the entry name relative to the root for the archive
IOExceptionpublic boolean delete()
ReadableArchive
delete in interface ReadableArchivepublic boolean renameTo(String arg0)
ReadableArchive
renameTo in interface ReadableArchivearg0 - the archive name
public void close()
throws IOException
Archive
close in interface ArchiveIOException
public long getArchiveSize()
throws SecurityException
Archive
getArchiveSize in interface ArchiveSecurityExceptionpublic boolean exists()
exists in interface ReadableArchivepublic Enumeration<String> entries()
Archive
entries in interface Archivepublic Enumeration<String> entries(String prefix)
Archive
entries in interface Archiveprefix - the prefix of entries to be included
public Collection<String> getDirectories()
throws IOException
Archive
getDirectories in interface ArchiveIOExceptionpublic boolean isDirectory(String name)
Archive
isDirectory in interface Archivename - name is one of the entries returned by Archive.entries()
public void setParentArchive(ReadableArchive parentArchive)
ReadableArchive
setParentArchive in interface ReadableArchiveparentArchive - the parent archivepublic ReadableArchive getParentArchive()
ReadableArchive
getParentArchive in interface ReadableArchivepublic <U> U getExtraData(Class<U> dataType)
ReadableArchive
getExtraData in interface ReadableArchivedataType - the type of the extra data
public <U> void setExtraData(Class<U> dataType,
U instance)
setExtraData in interface ReadableArchivepublic <U> void removeExtraData(Class<U> dataType)
removeExtraData in interface ReadableArchive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||