public class Zips extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Zips()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected static File |
file(File root,
ZipEntry entry) |
static void |
unzip(ZipFile zipfile,
File directory,
byte[] buffer)
Unzips entries from
zipfile into directory. |
static void |
unzip(ZipInputStream stream,
File directory,
byte[] buffer)
Unzips entries from
stream into directory. |
static void |
zip(File directory,
FileFilter filter,
ZipOutputStream stream,
byte[] buffer) |
protected static void |
zip(StringBuilder path,
File file,
FileFilter filter,
ZipOutputStream stream,
byte[] buffer) |
protected static File file(File root, ZipEntry entry) throws IOException
IOExceptionprotected static void zip(StringBuilder path, File file, FileFilter filter, ZipOutputStream stream, byte[] buffer) throws IOException
IOExceptionpublic static void zip(File directory, FileFilter filter, ZipOutputStream stream, byte[] buffer) throws IOException
IOExceptionpublic static void unzip(ZipInputStream stream, File directory, byte[] buffer) throws IOException
stream into directory.stream - source zip streamdirectory - target directory to which entries going to be unzipped.buffer - the buffer to useIOException - if an I/O error occurs.public static void unzip(ZipFile zipfile, File directory, byte[] buffer) throws IOException
zipfile into directory.zipfile - source zip filedirectory - target directory to which entries going to be unzippedbuffer - IOException - if an I/O error occurs.Copyright © 2011-2013. All Rights Reserved.