public class Zip extends Object
| 构造器和说明 |
|---|
Zip() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
IOException