Package com.alipay.sofa.ark.spi.archive
Interface Archive
- All Superinterfaces:
Iterable<Archive.Entry>
- All Known Subinterfaces:
BizArchive,ContainerArchive,ExecutableArchive,PluginArchive
- All Known Implementing Classes:
AbstractArchive
An archive that can be parsed in uniform style
- Author:
- Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents a single entry in the archive.static interfaceStrategy interface to filterEntries. -
Method Summary
Modifier and TypeMethodDescriptiongetInputStream(ZipEntry zipEntry) getInputStreamReturns the manifest of the archive.getNestedArchive(Archive.Entry entry) getNestedArchivegetNestedArchives(Archive.EntryFilter filter) Returns nestedArchives for entries that match the specified filter.getUrl()Returns a URL that can be used to load the archive.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getUrl
Returns a URL that can be used to load the archive.- Returns:
- the archive URL
- Throws:
MalformedURLException- if the URL is malformed
-
getManifest
Returns the manifest of the archive.- Returns:
- the manifest
- Throws:
IOException- if the manifest cannot be read
-
getNestedArchives
Returns nestedArchives for entries that match the specified filter.- Parameters:
filter- the filter used to limit entries- Returns:
- nested archives
- Throws:
IOException- if nested archives cannot be read
-
getNestedArchive
getNestedArchive- Parameters:
entry-- Returns:
- Throws:
IOException
-
getInputStream
getInputStream- Parameters:
zipEntry-- Returns:
- Throws:
IOException
-