Class AbstractArchiveDescriptorFactory

    • Constructor Detail

      • AbstractArchiveDescriptorFactory

        public AbstractArchiveDescriptorFactory()
    • Method Detail

      • getJarURLFromURLEntry

        public java.net.URL getJarURLFromURLEntry​(java.net.URL url,
                                                  java.lang.String entry)
                                           throws java.lang.IllegalArgumentException
        Description copied from interface: ArchiveDescriptorFactory
        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.
        Specified by:
        getJarURLFromURLEntry in interface ArchiveDescriptorFactory
        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:
        java.lang.IllegalArgumentException - Generally indicates a problem with malformed urls.