public interface Archive extends Iterable<Archive.Entry>, AutoCloseable
Launcher.JarFileArchive| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
Archive.Entry
Represents a single entry in the archive.
|
static interface |
Archive.EntryFilter
Strategy interface to filter
Entries. |
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
close()
Closes the
Archive, releasing any open resources. |
Manifest |
getManifest()
Returns the manifest of the archive.
|
Iterator<Archive> |
getNestedArchives(Archive.EntryFilter searchFilter,
Archive.EntryFilter includeFilter)
Returns nested
Archives for entries that match the specified filters. |
URL |
getUrl()
Returns a URL that can be used to load the archive.
|
default boolean |
isExploded()
Return if the archive is exploded (already unpacked).
|
forEach, iterator, spliteratorURL getUrl() throws MalformedURLException
MalformedURLException - if the URL is malformedManifest getManifest() throws IOException
IOException - if the manifest cannot be readIterator<Archive> getNestedArchives(Archive.EntryFilter searchFilter, Archive.EntryFilter includeFilter) throws IOException
Archives for entries that match the specified filters.searchFilter - filter used to limit when additional sub-entry searching is
required or null if all entries should be considered.includeFilter - filter used to determine which entries should be included in
the result or null if all entries should be includedIOException - on IO errordefault boolean isExploded()
default void close()
throws Exception
Archive, releasing any open resources.close 在接口中 AutoCloseableException - if an error occurs during close processingCopyright © 2022. All rights reserved.