类 JarFileArchive
- java.lang.Object
- org.springframework.boot.loader.archive.JarFileArchive
- 所有已实现的接口:
Iterable<Archive.Entry>
,Archive
public class JarFileArchive extends Object implements Archive
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.boot.loader.archive.Archive
Archive.Entry, Archive.EntryFilter
构造器概要
构造器 构造器 说明 JarFileArchive(File file)
JarFileArchive(File file, URL url)
JarFileArchive(JarFile jarFile)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Manifest
getManifest()
Returns the manifest of the archive.protected Archive
getNestedArchive(Archive.Entry entry)
List<Archive>
getNestedArchives(Archive.EntryFilter filter)
Returns nestedArchive
s for entries that match the specified filter.URL
getUrl()
Returns a URL that can be used to load the archive.Iterator<Archive.Entry>
iterator()
String
toString()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 java.lang.Iterable
forEach, spliterator
构造器详细资料
JarFileArchive
public JarFileArchive(File file) throws IOException
- 抛出:
IOException
JarFileArchive
public JarFileArchive(File file, URL url) throws IOException
- 抛出:
IOException
JarFileArchive
public JarFileArchive(JarFile jarFile)
方法详细资料
getUrl
public URL getUrl() throws MalformedURLException
从接口复制的说明:Archive
Returns a URL that can be used to load the archive.- 指定者:
getUrl
在接口中Archive
- 返回:
- the archive URL
- 抛出:
MalformedURLException
- if the URL is malformed
getManifest
public Manifest getManifest() throws IOException
从接口复制的说明:Archive
Returns the manifest of the archive.- 指定者:
getManifest
在接口中Archive
- 返回:
- the manifest
- 抛出:
IOException
- if the manifest cannot be read
getNestedArchives
public List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
从接口复制的说明:Archive
Returns nestedArchive
s for entries that match the specified filter.- 指定者:
getNestedArchives
在接口中Archive
- 参数:
filter
- the filter used to limit entries- 返回:
- nested archives
- 抛出:
IOException
- if nested archives cannot be read
iterator
public Iterator<Archive.Entry> iterator()
- 指定者:
iterator
在接口中Iterable<Archive.Entry>
getNestedArchive
protected Archive getNestedArchive(Archive.Entry entry) throws IOException
- 抛出:
IOException