Class MultiReleaseJarFile

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    @Deprecated(since="2021-05-27")
    public class MultiReleaseJarFile
    extends Object
    implements Closeable
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.

    Utility class to handle a Multi Release Jar file

    • Constructor Detail

      • MultiReleaseJarFile

        public MultiReleaseJarFile​(File file)
                            throws IOException
        Deprecated.
        Construct a multi release jar file for the current JVM version, ignoring directories.
        Parameters:
        file - The file to open
        Throws:
        IOException - if the jar file cannot be read
      • MultiReleaseJarFile

        public MultiReleaseJarFile​(File file,
                                   int javaPlatform,
                                   boolean includeDirectories)
                            throws IOException
        Deprecated.
        Construct a multi release jar file
        Parameters:
        file - The file to open
        javaPlatform - The JVM platform to apply when selecting a version.
        includeDirectories - true if any directory entries should not be ignored
        Throws:
        IOException - if the jar file cannot be read
    • Method Detail

      • isMultiRelease

        public boolean isMultiRelease()
        Deprecated.
        Returns:
        true IFF the jar is a multi release jar
      • getVersion

        public int getVersion()
        Deprecated.
        Returns:
        The major version applied to this jar for the purposes of selecting entries
      • getEntry

        public MultiReleaseJarFile.VersionedJarEntry getEntry​(String name)
        Deprecated.
        Get a versioned resource entry by name
        Parameters:
        name - The unversioned name of the resource
        Returns:
        The versioned entry of the resource