public class StandardArchiveDescriptorFactory extends Object implements ArchiveDescriptorFactory, JarFileEntryUrlAdjuster
| 限定符和类型 | 字段和说明 |
|---|---|
static StandardArchiveDescriptorFactory |
INSTANCE
Singleton access
|
| 构造器和说明 |
|---|
StandardArchiveDescriptorFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
URL |
adjustJarFileEntryUrl(URL url,
URL rootUrl)
Adjust the given URL, if needed.
|
ArchiveDescriptor |
buildArchiveDescriptor(URL url)
Build a descriptor of the archive indicated by the given url
|
ArchiveDescriptor |
buildArchiveDescriptor(URL url,
String entry)
Build a descriptor of the archive indicated by the path relative to the given url
|
protected String |
extractLocalFilePath(URL url) |
URL |
getJarURLFromURLEntry(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.
|
public static final StandardArchiveDescriptorFactory INSTANCE
public ArchiveDescriptor buildArchiveDescriptor(URL url)
ArchiveDescriptorFactorybuildArchiveDescriptor 在接口中 ArchiveDescriptorFactoryurl - The url to the archivepublic ArchiveDescriptor buildArchiveDescriptor(URL url, String entry)
ArchiveDescriptorFactorybuildArchiveDescriptor 在接口中 ArchiveDescriptorFactoryurl - The url to the archiveentry - The path within the given url that refers to the archivepublic URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException
ArchiveDescriptorFactorygetJarURLFromURLEntry 在接口中 ArchiveDescriptorFactoryurl - The URL to an entry within a JARentry - The entry that described the thing referred to by the URL relative to the JARIllegalArgumentException - Generally indicates a problem with malformed urls.public URL adjustJarFileEntryUrl(URL url, URL rootUrl)
JarFileEntryUrlAdjusteradjustJarFileEntryUrl 在接口中 JarFileEntryUrlAdjusterurl - The url to adjustrootUrl - The root URL, for resolving relative URLsCopyright © 2020. All rights reserved.