public abstract class ZipHelper
extends java.lang.Object
| Constructor and Description |
|---|
ZipHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
zip(java.io.File file,
java.io.OutputStream output)
This method compresses the input file to zip format.
|
static void |
zip(java.io.File file,
java.io.OutputStream output,
boolean includeRoot)
This method compresses the input file to zip format.
|
public static void zip(java.io.File file,
java.io.OutputStream output)
throws java.io.IOException
file - file to be zippedoutput - stream where the output will be writtenjava.io.IOException - if zip creation failspublic static void zip(java.io.File file,
java.io.OutputStream output,
boolean includeRoot)
throws java.io.IOException
file - file to be zippedoutput - stream where the output will be writtenincludeRoot - if root dir should be includedjava.io.IOException - if zip creation failsCopyright © 2016. All Rights Reserved.