接口 Archive
- 所有超级接口:
 Iterable<Archive.Entry>
- 所有已知实现类:
 ExplodedArchive,JarFileArchive
public interface Archive extends Iterable<Archive.Entry>
An archive that can be launched by theLauncher.- 另请参阅:
 JarFileArchive
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceArchive.EntryRepresents a single entry in the archive.static interfaceArchive.EntryFilterStrategy interface to filterEntries.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
方法详细资料
getUrl
URL getUrl() throws MalformedURLException
Returns a URL that can be used to load the archive.- 返回:
 - the archive URL
 - 抛出:
 MalformedURLException- if the URL is malformed
getManifest
Manifest getManifest() throws IOException
Returns the manifest of the archive.- 返回:
 - the manifest
 - 抛出:
 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.- 参数:
 filter- the filter used to limit entries- 返回:
 - nested archives
 - 抛出:
 IOException- if nested archives cannot be read