public class TrueZipFileHandler extends java.lang.Object implements ZipFileHandler
Modifier | Constructor and Description |
---|---|
protected |
TrueZipFileHandler()
Class members
|
Modifier and Type | Method and Description |
---|---|
static TrueZipFileHandler |
instance() |
static void |
main(java.lang.String[] args) |
void |
zip(java.io.BufferedOutputStream output,
java.io.File source,
java.lang.String prefix)
ZIPs the given source to the given output.
|
public static final TrueZipFileHandler instance()
public static final void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void zip(java.io.BufferedOutputStream output, java.io.File source, java.lang.String prefix) throws java.io.IOException
ZipFileHandler
When a prefix is given, each ZIP entry will be prefixed by the given string.
zip
in interface ZipFileHandler
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 performed