public class ANTZipFileHandler extends java.lang.Object implements ZipFileHandler
| Modifier | Constructor and Description |
|---|---|
protected |
ANTZipFileHandler()
Class members
|
| Modifier and Type | Method and Description |
|---|---|
java.io.FileFilter |
getFileFilter()
Get the file filter to check files for transfer.
|
static ANTZipFileHandler |
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.
|
void |
zip(org.apache.tools.zip.ZipOutputStream zip,
java.io.File dirFile,
java.lang.String prefix) |
public static final ANTZipFileHandler instance()
public static final void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionpublic void zip(org.apache.tools.zip.ZipOutputStream zip,
java.io.File dirFile,
java.lang.String prefix)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.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 performedpublic java.io.FileFilter getFileFilter()