|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface ReadableArchive
Interface for implementing read access to an underlying archive on a unspecified medium
| Method Summary | ||
|---|---|---|
boolean |
delete()
deletes the archive |
|
boolean |
exists()
|
|
boolean |
exists(java.lang.String name)
Returns the existence of the given entry name The file name must be relative to the root of the module. |
|
java.io.InputStream |
getEntry(java.lang.String name)
Returns the InputStream for the given entry name The file name must be relative to the root of the module. |
|
long |
getEntrySize(java.lang.String name)
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 name)
Returns an instance of this archive abstraction for an embedded archive within this archive. |
|
void |
open(java.net.URI uri)
Open an abstract archive |
|
|
removeExtraData(java.lang.Class<U> dataType)
|
|
boolean |
renameTo(java.lang.String name)
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 interface org.glassfish.api.deployment.archive.Archive |
|---|
close, entries, entries, getArchiveSize, getDirectories, getManifest, getName, getURI, isDirectory |
| Method Detail |
|---|
java.io.InputStream getEntry(java.lang.String name)
throws java.io.IOException
name - the file name relative to the root of the module.
java.io.IOException
boolean exists(java.lang.String name)
throws java.io.IOException
name - the file name relative to the root of the module.
java.io.IOExceptionlong getEntrySize(java.lang.String name)
name - the entry name
void open(java.net.URI uri)
throws java.io.IOException
uri - path to the archive
java.io.IOException
ReadableArchive getSubArchive(java.lang.String name)
throws java.io.IOException
name - is the entry name relative to the root for the archive
java.io.IOExceptionboolean exists()
boolean delete()
boolean renameTo(java.lang.String name)
name - the archive namevoid setParentArchive(ReadableArchive parentArchive)
parentArchive - the parent archiveReadableArchive getParentArchive()
<U> U getExtraData(java.lang.Class<U> dataType)
dataType - the type of the extra data
<U> void setExtraData(java.lang.Class<U> dataType,
U instance)
<U> void removeExtraData(java.lang.Class<U> dataType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||