Class Jar.Directory

  • Enclosing class:
    Jar

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

      Fields 
      Modifier and Type Field Description
      private java.io.File dir  
    • Constructor Summary

      Constructors 
      Constructor Description
      Directory​(java.io.File dir)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.io.File[] fixNull​(java.io.File[] f)  
      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.
      private byte[] readFully​(java.io.File f)  
      • 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

      • dir

        private final java.io.File dir
    • Constructor Detail

      • Directory

        public Directory​(java.io.File dir)
    • 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
      • fixNull

        private java.io.File[] fixNull​(java.io.File[] f)
      • 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
      • readFully

        private byte[] readFully​(java.io.File f)
                          throws java.io.IOException
        Throws:
        java.io.IOException