public abstract class ReadableArchiveAdapter extends Object implements ReadableArchive
| Constructor and Description |
|---|
ReadableArchiveAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArchiveMetaData(String metaDataKey,
Object metaData) |
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() |
<T> T |
getArchiveMetaData(String metaDataKey,
Class<T> metadataType) |
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
|
<U> U |
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
|
void |
removeArchiveMetaData(String metaDataKey) |
<U> void |
removeExtraData(Class<U> dataType) |
boolean |
renameTo(String arg0)
rename the archive
|
<U> void |
setExtraData(Class<U> dataType,
U instance) |
void |
setParentArchive(ReadableArchive parentArchive)
set the parent archive for this archive
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, getEntrygetManifest, getName, getURIpublic long getEntrySize(String arg0)
ReadableArchivegetEntrySize in interface ReadableArchivearg0 - the entry namepublic void open(URI arg0) throws IOException
ReadableArchiveopen in interface ReadableArchivearg0 - path to the archiveIOExceptionpublic ReadableArchive getSubArchive(String arg0) throws IOException
ReadableArchivegetSubArchive in interface ReadableArchivearg0 - is the entry name relative to the root for the archiveIOExceptionpublic boolean delete()
ReadableArchivedelete in interface ReadableArchivepublic boolean renameTo(String arg0)
ReadableArchiverenameTo in interface ReadableArchivearg0 - the archive namepublic void close()
throws IOException
Archiveclose in interface ArchiveIOExceptionpublic long getArchiveSize()
throws SecurityException
ArchivegetArchiveSize in interface ArchiveSecurityExceptionpublic boolean exists()
exists in interface ReadableArchivepublic Enumeration<String> entries()
Archivepublic Enumeration<String> entries(String prefix)
Archivepublic Collection<String> getDirectories() throws IOException
ArchivegetDirectories in interface ArchiveIOExceptionpublic boolean isDirectory(String name)
ArchiveisDirectory in interface Archivename - name is one of the entries returned by Archive.entries()public void setParentArchive(ReadableArchive parentArchive)
ReadableArchivesetParentArchive in interface ReadableArchiveparentArchive - the parent archivepublic ReadableArchive getParentArchive()
ReadableArchivegetParentArchive in interface ReadableArchivepublic <U> U getExtraData(Class<U> dataType)
ReadableArchivegetExtraData in interface ReadableArchivedataType - the type of the extra datapublic <U> void setExtraData(Class<U> dataType, U instance)
setExtraData in interface ReadableArchivepublic <U> void removeExtraData(Class<U> dataType)
removeExtraData in interface ReadableArchivepublic void addArchiveMetaData(String metaDataKey, Object metaData)
addArchiveMetaData in interface ReadableArchivepublic <T> T getArchiveMetaData(String metaDataKey, Class<T> metadataType)
getArchiveMetaData in interface ReadableArchivepublic void removeArchiveMetaData(String metaDataKey)
removeArchiveMetaData in interface ReadableArchiveCopyright © 2017–2020 Eclipse Foundation. All rights reserved.