Class MultiReleaseJarFile.VersionedJarEntry

  • Enclosing class:
    MultiReleaseJarFile

    public class MultiReleaseJarFile.VersionedJarEntry
    extends java.lang.Object
    A versioned Jar entry
    • Field Detail

      • entry

        final java.util.jar.JarEntry entry
      • name

        final java.lang.String name
      • version

        final int version
      • inner

        final boolean inner
      • outer

        final java.lang.String outer
    • Constructor Detail

      • VersionedJarEntry

        VersionedJarEntry​(java.util.jar.JarEntry entry)
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the unversioned name of the resource
      • getNameInJar

        public java.lang.String getNameInJar()
        Returns:
        The name of the resource within the jar, which could be versioned
      • getVersion

        public int getVersion()
        Returns:
        The version of the resource or 0 for a base version
      • isVersioned

        public boolean isVersioned()
        Returns:
        True iff the entry is not from the base version
      • isDirectory

        public boolean isDirectory()
        Returns:
        True iff the entry is a directory
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Returns:
        An input stream of the content of the versioned entry.
        Throws:
        java.io.IOException - if something goes wrong!
      • isApplicable

        boolean isApplicable()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object