public interface ZipFileHandler
Modifier and Type | Method and Description |
---|---|
void |
zip(java.io.BufferedOutputStream output,
java.io.File source,
java.lang.String prefix)
ZIPs the given source to the given output.
|
void zip(java.io.BufferedOutputStream output, java.io.File source, java.lang.String prefix) throws java.io.IOException
When a prefix is given, each ZIP entry will be prefixed by the given string.
output
- where to put the save the ZIP file.source
- from where to build up the ZIPprefix
- to be used to prefix the entryjava.io.IOException
- when the zipping operation could not be performedjava.lang.IllegalArgumentException
- if the output or source is NULL.