public class ZipFiles
extends java.lang.Object
Constructor and Description |
---|
ZipFiles() |
Modifier and Type | Method and Description |
---|---|
void |
zipDirectory(java.io.File dir,
java.lang.String zipDirName)
This method zips the directory
|
java.io.File |
zipDirectory(java.lang.String fileDir) |
void |
zipDirectoryStream(java.io.File dir,
java.io.OutputStream fos) |
static void |
zipSingleFile(java.io.File file,
java.lang.String zipFileName)
This method compresses the single file to zip format
|
public void zipDirectory(java.io.File dir, java.lang.String zipDirName)
dir
- zipDirName
- public java.io.File zipDirectory(java.lang.String fileDir)
public void zipDirectoryStream(java.io.File dir, java.io.OutputStream fos)
public static void zipSingleFile(java.io.File file, java.lang.String zipFileName)
file
- zipFileName
-