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