类 ExplodedArchive
- java.lang.Object
 - org.springframework.boot.loader.archive.ExplodedArchive
 
- 所有已实现的接口:
 Iterable<Archive.Entry>,Archive
public class ExplodedArchive extends Object implements Archive
Archiveimplementation backed by an exploded archive directory.
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.boot.loader.archive.Archive
Archive.Entry, Archive.EntryFilter
构造器概要
构造器 构造器 说明 ExplodedArchive(File root)Create a newExplodedArchiveinstance.ExplodedArchive(File root, boolean recursive)Create a newExplodedArchiveinstance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ManifestgetManifest()Returns the manifest of the archive.protected ArchivegetNestedArchive(Archive.Entry entry)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.Iterator<Archive.Entry>iterator()StringtoString()从类继承的方法 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 newExplodedArchiveinstance.- 参数:
 root- the root folder
ExplodedArchive
public ExplodedArchive(File root, boolean recursive)
Create a newExplodedArchiveinstance.- 参数:
 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
从接口复制的说明:ArchiveReturns 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
从接口复制的说明:ArchiveReturns 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
从接口复制的说明:ArchiveReturns nestedArchives 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