public class ZipUtil
extends java.lang.Object
Constructor and Description |
---|
ZipUtil() |
Modifier and Type | Method and Description |
---|---|
byte[] |
zip(java.io.File dir)
Compresses a list of files to a destination zip file
|
byte[] |
zip(java.io.File dir,
java.util.Date start) |
public byte[] zip(java.io.File dir) throws java.io.IOException
listFiles
- A collection of files and directoriesdestZipFile
- The path of the destination zip filejava.io.FileNotFoundException
java.io.IOException
public byte[] zip(java.io.File dir, java.util.Date start) throws java.io.IOException
java.io.IOException