public class Zip extends Object
| Constructor and Description |
|---|
Zip() |
| Modifier and Type | Method and Description |
|---|---|
void |
unzip(File source,
File outputDir) |
void |
unzip(InputStream source,
File outputDir) |
void |
unzip(String source,
File outputDir) |
void |
unzipFile(File output,
InputStream zipStream,
String name) |
String |
zip(File inputDir) |
void |
zip(File inputDir,
File output) |
String |
zipFile(File baseDir,
File fileToCompress) |
public void zip(File inputDir, File output) throws IOException
IOExceptionpublic String zip(File inputDir) throws IOException
IOExceptionpublic String zipFile(File baseDir, File fileToCompress) throws IOException
IOExceptionpublic void unzip(String source, File outputDir) throws IOException
IOExceptionpublic void unzip(File source, File outputDir) throws IOException
IOExceptionpublic void unzip(InputStream source, File outputDir) throws IOException
IOExceptionpublic void unzipFile(File output, InputStream zipStream, String name) throws IOException
IOExceptionCopyright © 2015. All rights reserved.