uk.ac.cam.spectra
Class Zipper

java.lang.Object
  extended by uk.ac.cam.spectra.Zipper

public class Zipper
extends java.lang.Object

Utility object for creating zip files of directories.

Author:
ojd20

Constructor Summary
Zipper()
           
 
Method Summary
 void zip(java.io.File dir, java.io.File zipfile)
          Zip a directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Zipper

public Zipper()
Method Detail

zip

public void zip(java.io.File dir,
                java.io.File zipfile)
         throws java.io.IOException
Zip a directory.

Parameters:
dir - the source directory
zipfile - the target zip file
Throws:
java.io.IOException - rethrown from java.io.


Copyright © 2006-2007 The SPECTRa Project. All Rights Reserved.