类 ExplodedArchive
- java.lang.Object
- org.springframework.boot.loader.archive.ExplodedArchive
- 所有已实现的接口:
Iterable<Archive.Entry>
,Archive
public class ExplodedArchive extends Object implements Archive
Archive
implementation backed by an exploded archive directory.
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.boot.loader.archive.Archive
Archive.Entry, Archive.EntryFilter
构造器概要
构造器 构造器 说明 ExplodedArchive(File root)
Create a newExplodedArchive
instance.ExplodedArchive(File root, boolean recursive)
Create a newExplodedArchive
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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
构造器详细资料
ExplodedArchive
public ExplodedArchive(File root)
Create a newExplodedArchive
instance.- 参数:
root
- the root folder
ExplodedArchive
public ExplodedArchive(File root, boolean recursive)
Create a newExplodedArchive
instance.- 参数:
root
- the root folderrecursive
- if recursive searching should be used to locate the manifest. Defaults totrue
, folders with a large tree might want to set this tofalse
.
方法详细资料
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