接口 Archive
- 所有超级接口:
AutoCloseable
An archive that can be launched by the
Launcher
.- 从以下版本开始:
- 3.2.0
- 作者:
- Phillip Webb
-
嵌套类概要
嵌套类 -
字段概要
字段 -
方法概要
修饰符和类型方法说明default void
close()
Closes theArchive
, releasing any open resources.static Archive
static Archive
static Archive
create
(ProtectionDomain protectionDomain) getClassPathUrls
(Predicate<Archive.Entry> includeFilter) Returns classpath URLs for the archive that match the specified filter.getClassPathUrls
(Predicate<Archive.Entry> includeFilter, Predicate<Archive.Entry> directorySearchFilter) Returns classpath URLs for the archive that match the specified filters.Returns the manifest of the archive.default File
Returns the root directory of this archive ornull
if the archive is not backed by a directory.default boolean
Returns if this archive is backed by an exploded archive directory.
-
字段详细资料
-
ALL_ENTRIES
Predicate that accepts all entries.
-
-
方法详细资料
-
getManifest
Returns the manifest of the archive.- 返回:
- the manifest or
null
- 抛出:
IOException
- if the manifest cannot be read
-
getClassPathUrls
Returns classpath URLs for the archive that match the specified filter.- 参数:
includeFilter
- filter used to determine which entries should be included.- 返回:
- the classpath URLs
- 抛出:
IOException
- on IO error
-
getClassPathUrls
Set<URL> getClassPathUrls(Predicate<Archive.Entry> includeFilter, Predicate<Archive.Entry> directorySearchFilter) throws IOException Returns classpath URLs for the archive that match the specified filters.- 参数:
includeFilter
- filter used to determine which entries should be includeddirectorySearchFilter
- filter used to optimize tree walking for exploded archives by determining if a directory needs to be searched or not- 返回:
- the classpath URLs
- 抛出:
IOException
- on IO error
-
isExploded
default boolean isExploded()Returns if this archive is backed by an exploded archive directory.- 返回:
- if the archive is exploded
-
getRootDirectory
Returns the root directory of this archive ornull
if the archive is not backed by a directory.- 返回:
- the root directory
-
close
Closes theArchive
, releasing any open resources.- 指定者:
close
在接口中AutoCloseable
- 抛出:
Exception
- if an error occurs during close processing
-
create
-
create
- 抛出:
Exception
-
create
-