FileDocCategorySizeDatePackage
JarArchiveFactory.javaAPI DocGlassfish v2 API3080Fri May 04 22:31:36 BST 2007com.sun.enterprise.deployment.deploy.shared

JarArchiveFactory

public class JarArchiveFactory extends Object implements AbstractArchiveFactory
author
dochez

Fields Summary
Constructors Summary
Methods Summary
public AbstractArchivecreateArchive(java.lang.String path)
create a new archive abstraction with the given path and return an implementation responsible for storing elements to this archive abstraction

param
path for the new archive
return
the abstraction to manipulate the archive

        OutputJarArchive ja =  new OutputJarArchive();
        ja.create(path);
        return ja;
    
public AbstractArchiveopenArchive(java.lang.String path)
open an existing archive described by the path and return an implementation responsible for retrieving eleemnts from this archive abstraction

param
path for the existing archive
return
the abstraction to get entries from

        InputJarArchive ja = new InputJarArchive();
        ja.open(path);
        return ja;