public abstract class ZipHelper extends Object
| Constructor and Description |
|---|
ZipHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
zip(File file,
OutputStream output)
This method compresses the input file to zip format.
|
static void |
zip(File file,
OutputStream output,
boolean includeRoot)
This method compresses the input file to zip format.
|
public static void zip(File file, OutputStream output) throws IOException
file - file to be zippedoutput - stream where the output will be writtenIOException - if zip creation failspublic static void zip(File file, OutputStream output, boolean includeRoot) throws IOException
file - file to be zippedoutput - stream where the output will be writtenincludeRoot - if root dir should be includedIOException - if zip creation failsCopyright © 2019. All rights reserved.