public final class FolderZipUtils extends Object
Constructor and Description |
---|
FolderZipUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
zipFolder(File folder,
File zipFile)
Zips a folder
|
static void |
zipFolder(File folder,
OutputStream outputStream)
Zips a folder
|
public static void zipFolder(File folder, File zipFile) throws IOException
folder
- Folder to be zippedzipFile
- Name of the zipped fileIOException
- IOExceptionpublic static void zipFolder(File folder, OutputStream outputStream) throws IOException
folder
- Folder to be zippedoutputStream
- File OutputStreamIOException
- IOExceptionCopyright © 2016–2017. All rights reserved.