com.sun.enterprise.module.common_impl
Class Jar

java.lang.Object
  extended by com.sun.enterprise.module.common_impl.Jar

public abstract class Jar
extends java.lang.Object

Abstraction of JarFile so that we can handle both a jar file and a directory image transparently.

Author:
Kohsuke Kawaguchi

Constructor Summary
protected Jar()
           
 
Method Summary
static Jar create(java.io.File file)
           
abstract  java.lang.String getBaseName()
          Gets the base name of the jar.
abstract  java.util.jar.Manifest getManifest()
          See JarFile.getManifest() for the contract.
abstract  void loadMetadata(ModuleMetadata result)
          Loads all META-INF/habitats entries and store them to the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jar

protected Jar()
Method Detail

getManifest

public abstract java.util.jar.Manifest getManifest()
                                            throws java.io.IOException
See JarFile.getManifest() for the contract.

Throws:
java.io.IOException

loadMetadata

public abstract void loadMetadata(ModuleMetadata result)
Loads all META-INF/habitats entries and store them to the list.


getBaseName

public abstract java.lang.String getBaseName()
Gets the base name of the jar.

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


create

public static Jar create(java.io.File file)
                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.