Interface Archive
- All Superinterfaces:
Iterable<Archive.Entry>
- All Known Implementing Classes:
ExplodedArchive,JarFileArchive
public interface Archive extends Iterable<Archive.Entry>
An archive that can be launched by theLauncher.- See Also:
JarFileArchive
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceArchive.EntryRepresents a single entry in the archive.static interfaceArchive.EntryFilterStrategy interface to filterEntries.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManifestgetManifest()Returns the manifest of the archive.List<Archive>getNestedArchives(Archive.EntryFilter filter)Returns nestedArchives for entries that match the specified filter.URLgetUrl()Returns a URL that can be used to load the archive.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Method Detail
getUrl
URL getUrl() throws MalformedURLException
Returns a URL that can be used to load the archive.- Returns:
- the archive URL
- Throws:
MalformedURLException- if the URL is malformed
getManifest
Manifest getManifest() throws IOException
Returns the manifest of the archive.- Returns:
- the manifest
- Throws:
IOException- if the manifest cannot be read
getNestedArchives
List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
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