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

FileArchiveFactory

public class FileArchiveFactory extends Object implements AbstractArchiveFactory
Abstract Archive factory to create archive abstractions based on directory structures
author
Jerome 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

        FileArchive output = new FileArchive();
        output.create(path);        
        return output;        
    
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

        FileArchive input = new FileArchive();
        input.open(path);        
        return input;