org.deegree_impl.tools
Class ZipUtil
java.lang.Object
org.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
|
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 |
details
private java.lang.StringBuffer details
ZipUtil
public ZipUtil()
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 archivearchiveName
- desired archive namefileNames
- 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
.