接口 ArchiveDescriptorFactory
-
public interface ArchiveDescriptorFactoryContract for building ArchiveDescriptor instances.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 ArchiveDescriptorbuildArchiveDescriptor(URL url)Build a descriptor of the archive indicated by the given urlArchiveDescriptorbuildArchiveDescriptor(URL url, String path)Build a descriptor of the archive indicated by the path relative to the given urlURLgetJarURLFromURLEntry(URL url, String entry)Given a URL which defines an entry within a JAR (really any "bundled archive" such as a jar file, zip, etc) and an entry within that JAR, find the URL to the JAR itself.URLgetURLFromPath(String jarPath)已过时。Not used!
-
-
-
方法详细资料
-
buildArchiveDescriptor
ArchiveDescriptor buildArchiveDescriptor(URL url)
Build a descriptor of the archive indicated by the given url- 参数:
url- The url to the archive- 返回:
- The descriptor
-
buildArchiveDescriptor
ArchiveDescriptor buildArchiveDescriptor(URL url, String path)
Build a descriptor of the archive indicated by the path relative to the given url- 参数:
url- The url to the archivepath- The path within the given url that refers to the archive- 返回:
- The descriptor
-
getJarURLFromURLEntry
URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException
Given a URL which defines an entry within a JAR (really any "bundled archive" such as a jar file, zip, etc) and an entry within that JAR, find the URL to the JAR itself.- 参数:
url- The URL to an entry within a JARentry- The entry that described the thing referred to by the URL relative to the JAR- 返回:
- The URL to the JAR
- 抛出:
IllegalArgumentException- Generally indicates a problem with malformed urls.
-
getURLFromPath
@Deprecated URL getURLFromPath(String jarPath)
已过时。Not used!Not used!- 参数:
jarPath- The jar path- 返回:
- The url from the path?
-
-