接口 ArchiveDescriptorFactory

    • 方法详细资料

      • 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 archive
        path - 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 JAR
        entry - 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?