uk.ac.ed.inf.ogsaconfig.garm.collections
Class ArchiveMakerImp

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.collections.ArchiveMakerImp
All Implemented Interfaces:
ArchiveMaker

public class ArchiveMakerImp
extends java.lang.Object
implements ArchiveMaker

This class provides a basic implementation of the ArchiveMaker interface, offering only the GAR archives currently in use (that is ZIP compression, extension .gar)


Constructor Summary
ArchiveMakerImp()
           
 
Method Summary
 Archive create(java.lang.String name, java.io.File fp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveMakerImp

public ArchiveMakerImp()
Method Detail

create

public Archive create(java.lang.String name,
                      java.io.File fp)
Specified by:
create in interface ArchiveMaker
Parameters:
name - is the name of the archive
fp - is the file the archive should represent the two arguments are needed because the name of the file need not be the correct archive name, for example if the archive has been copied in from a remote location and stored in a temporary file with a random name.