org.deegree_impl.tools
Class ZipUtil

java.lang.Object
  extended byorg.deegree_impl.tools.ZipUtil

public class ZipUtil
extends java.lang.Object

Version:
$Revision: 1.3 $
Author:
Andreas Poth

Field Summary
private  java.lang.StringBuffer details
           
 
Constructor Summary
ZipUtil()
           
 
Method Summary
private  java.lang.StringBuffer createZipDetails(java.util.zip.ZipEntry e)
          returns some information about the zip process of the current ZipEntry.
 java.lang.String doZip(java.lang.String dirName, java.lang.String archiveName, java.lang.String[] fileNames)
          packs the passed files into a zip-archive, deletes the files if desired and returns the name of the archive
 java.lang.String getZipDetails()
          returns details about the zipping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

details

private java.lang.StringBuffer details
Constructor Detail

ZipUtil

public ZipUtil()
Method Detail

doZip

public java.lang.String doZip(java.lang.String dirName,
                              java.lang.String archiveName,
                              java.lang.String[] fileNames)
                       throws java.io.FileNotFoundException,
                              java.io.IOException
packs the passed files into a zip-archive, deletes the files if desired and returns the name of the archive

Parameters:
dirName - name of the directory where to store the archive
archiveName - desired archive name
fileNames - names of the files to be packed into the zip archive
Throws:
java.io.FileNotFoundException
java.io.IOException

getZipDetails

public java.lang.String getZipDetails()
returns details about the zipping


createZipDetails

private java.lang.StringBuffer createZipDetails(java.util.zip.ZipEntry e)
returns some information about the zip process of the current ZipEntry.