Interface ArchiveDescriptorFactory

    • Method Detail

      • buildArchiveDescriptor

        ArchiveDescriptor buildArchiveDescriptor​(URL url)
        Build a descriptor of the archive indicated by the given url
        Parameters:
        url - The url to the archive
        Returns:
        The descriptor
      • buildArchiveDescriptor

        ArchiveDescriptor buildArchiveDescriptor​(URL url,
                                                 String path)
        Build a descriptor of the archive indicated by the path relative to the given url
        Parameters:
        url - The url to the archive
        path - The path within the given url that refers to the archive
        Returns:
        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.
        Parameters:
        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
        Returns:
        The URL to the JAR
        Throws:
        IllegalArgumentException - Generally indicates a problem with malformed urls.