public interface Archive extends Iterable<Archive.Entry>, AutoCloseable
Launcher.JarFileArchive| Modifier and Type | Interface and Description |
|---|---|
static interface |
Archive.Entry
Represents a single entry in the archive.
|
static interface |
Archive.EntryFilter
Strategy interface to filter
Entries. |
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Closes the
Archive, releasing any open resources. |
Manifest |
getManifest()
Returns the manifest of the archive.
|
List<Archive> |
getNestedArchives(Archive.EntryFilter filter)
Returns nested
Archives for entries that match the specified filter. |
URL |
getUrl()
Returns a URL that can be used to load the archive.
|
forEach, iterator, spliteratorURL getUrl() throws MalformedURLException
MalformedURLException - if the URL is malformedManifest getManifest() throws IOException
IOException - if the manifest cannot be readList<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
Archives for entries that match the specified filter.filter - the filter used to limit entriesIOException - if nested archives cannot be readdefault void close()
throws Exception
Archive, releasing any open resources.close in interface AutoCloseableException - if an error occurs during close processingCopyright © 2019 Pivotal Software, Inc.. All rights reserved.