public interface Archive extends Iterable<Archive.Entry>
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
Archive.Entry
Represents a single entry in the archive.
|
static interface |
Archive.EntryFilter
Strategy interface to filter
Entries. |
| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
getInputStream(ZipEntry zipEntry) |
Manifest |
getManifest()
Returns the manifest of the archive.
|
Archive |
getNestedArchive(Archive.Entry entry) |
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.
|
URL 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 readArchive getNestedArchive(Archive.Entry entry) throws IOException
IOExceptionInputStream getInputStream(ZipEntry zipEntry) throws IOException
IOExceptionCopyright © 2018. All rights reserved.