|
||||||||||
| 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 |
|
java.util.Enumeration<java.lang.String> |
entries()
Returns an enumeration of the module file entries. |
|
java.util.Enumeration<java.lang.String> |
entries(java.lang.String prefix)
Returns an enumeration of the module file entries with the specified prefix. |
|
boolean |
exists()
|
|
long |
getArchiveSize()
Returns the size of the archive. |
|
java.util.Collection<java.lang.String> |
getDirectories()
Returns the enumeration of first level directories in this archive |
|
long |
getEntrySize(java.lang.String arg0)
Returns the entry size for a given entry name or 0 if not known |
|
|
getExtraData(java.lang.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(java.lang.String arg0)
Returns an instance of this archive abstraction for an embedded archive within this archive. |
|
boolean |
isDirectory(java.lang.String name)
Returns true if the entry is a directory or a plain file |
|
void |
open(java.net.URI arg0)
Open an abstract archive |
|
|
removeExtraData(java.lang.Class<U> dataType)
|
|
boolean |
renameTo(java.lang.String arg0)
rename the archive |
|
|
setExtraData(java.lang.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(java.lang.String arg0)
ReadableArchive
getEntrySize in interface ReadableArchivearg0 - the entry name
public void open(java.net.URI arg0)
throws java.io.IOException
ReadableArchive
open in interface ReadableArchivearg0 - path to the archive
java.io.IOException
public ReadableArchive getSubArchive(java.lang.String arg0)
throws java.io.IOException
ReadableArchive
getSubArchive in interface ReadableArchivearg0 - is the entry name relative to the root for the archive
java.io.IOExceptionpublic boolean delete()
ReadableArchive
delete in interface ReadableArchivepublic boolean renameTo(java.lang.String arg0)
ReadableArchive
renameTo in interface ReadableArchivearg0 - the archive name
public void close()
throws java.io.IOException
Archive
close in interface Archivejava.io.IOException
public long getArchiveSize()
throws java.lang.SecurityException
Archive
getArchiveSize in interface Archivejava.lang.SecurityExceptionpublic boolean exists()
exists in interface ReadableArchivepublic java.util.Enumeration<java.lang.String> entries()
Archive
entries in interface Archivepublic java.util.Enumeration<java.lang.String> entries(java.lang.String prefix)
Archive
entries in interface Archiveprefix - the prefix of entries to be included
public java.util.Collection<java.lang.String> getDirectories()
throws java.io.IOException
Archive
getDirectories in interface Archivejava.io.IOExceptionpublic boolean isDirectory(java.lang.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(java.lang.Class<U> dataType)
ReadableArchive
getExtraData in interface ReadableArchivedataType - the type of the extra data
public <U> void setExtraData(java.lang.Class<U> dataType,
U instance)
setExtraData in interface ReadableArchivepublic <U> void removeExtraData(java.lang.Class<U> dataType)
removeExtraData in interface ReadableArchive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||