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
IOException
public String zip(File inputDir) throws IOException
IOException
public String zipFile(File baseDir, File fileToCompress) throws IOException
IOException
public void unzip(String source, File outputDir) throws IOException
IOException
public void unzip(File source, File outputDir) throws IOException
IOException
public void unzip(InputStream source, File outputDir) throws IOException
IOException
public void unzipFile(File output, InputStream zipStream, String name) throws IOException
IOException
Copyright © 2014. All rights reserved.