Class Jar.Archive

  • Enclosing class:
    Jar

    private static final class Jar.Archive
    extends Jar
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File file  
      private java.util.jar.JarFile jar  
    • Constructor Summary

      Constructors 
      Constructor Description
      Archive​(java.io.File jar)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBaseName()
      Gets the base name of the jar.
      java.util.jar.Manifest getManifest()
      See JarFile.getManifest() for the contract.
      void loadMetadata​(ModuleMetadata result)
      Loads all META-INF/habitats entries and store them to the list.
      • Methods inherited from class com.sun.enterprise.module.common_impl.Jar

        create
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • jar

        private final java.util.jar.JarFile jar
      • file

        private final java.io.File file
    • Constructor Detail

      • Archive

        public Archive​(java.io.File jar)
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getManifest

        public java.util.jar.Manifest getManifest()
                                           throws java.io.IOException
        Description copied from class: Jar
        See JarFile.getManifest() for the contract.
        Specified by:
        getManifest in class Jar
        Throws:
        java.io.IOException
      • loadMetadata

        public void loadMetadata​(ModuleMetadata result)
        Description copied from class: Jar
        Loads all META-INF/habitats entries and store them to the list.
        Specified by:
        loadMetadata in class Jar
      • getBaseName

        public java.lang.String getBaseName()
        Description copied from class: Jar
        Gets the base name of the jar.

        For example, "bar" for "bar.jar".

        Specified by:
        getBaseName in class Jar