public abstract class AbstractReadableArchive extends Object implements ReadableArchive
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
archiveMetaData |
protected Map<Class<?>,Object> |
extraData |
protected ReadableArchive |
parentArchive |
Constructor and Description |
---|
AbstractReadableArchive() |
Modifier and Type | Method and Description |
---|---|
void |
addArchiveMetaData(String metaDataKey,
Object metaData) |
<T> T |
getArchiveMetaData(String metaDataKey,
Class<T> metadataType) |
<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
|
void |
removeArchiveMetaData(String metaDataKey) |
<U> void |
removeExtraData(Class<U> dataType) |
<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, wait
delete, exists, exists, getEntry, getEntrySize, getSubArchive, open, renameTo
close, entries, entries, getArchiveSize, getDirectories, getManifest, getName, getURI, isDirectory
protected ReadableArchive parentArchive
public void setParentArchive(ReadableArchive parentArchive)
setParentArchive
in interface ReadableArchive
parentArchive
- the parent archivepublic ReadableArchive getParentArchive()
getParentArchive
in interface ReadableArchive
public <U> U getExtraData(Class<U> dataType)
getExtraData
in interface ReadableArchive
dataType
- the type of the extra datapublic <U> void setExtraData(Class<U> dataType, U instance)
setExtraData
in interface ReadableArchive
public <U> void removeExtraData(Class<U> dataType)
removeExtraData
in interface ReadableArchive
public void addArchiveMetaData(String metaDataKey, Object metaData)
addArchiveMetaData
in interface ReadableArchive
public <T> T getArchiveMetaData(String metaDataKey, Class<T> metadataType)
getArchiveMetaData
in interface ReadableArchive
public void removeArchiveMetaData(String metaDataKey)
removeArchiveMetaData
in interface ReadableArchive
Copyright © 2021. All rights reserved.