External archives are not part of the saker.nest repository, but they are loaded from their associated URIs. Bundles may declare external dependencies in which case they can be loaded and consumed as part of the repository operations.
The contents of the archive may be interpreted in any way suitable for the caller.
This interface is not to be implemented by clients.
public ExternalArchiveKey | Gets the archive key of this instance. |
public default ByteArrayRegion | getEntryBytes( Gets the full byte array contents of the given entry. |
public NavigableSet< | Gets the names of entries in this archive. |
public byte[] | getHash() Gets a hash of the contents of the archive. |
public default boolean | Checks if a given entry with the specified name is present in the archive. |
public InputStream | Opens a byte input stream to the contents of the entry with the given name. |
The archive key contains the origins of the archive.
null
.Directory entries are not included.
The hasEntry(true
for any entry name contained in the returned
set.
The hash is produced by hashing the raw byte contents of the archive itself. If the archive was compressed, the contents are not uncompressed for hashing.
The hash algorithm is implementation dependent. It is the same as used by NestRepositoryBundle.getHash().
If the argument is null
, this method returns false
.
true
if the entry is present.The returned stream must be closed by the caller.
null
.