com.atlassian.confluence.util
Class ZipUtility
java.lang.Object
com.atlassian.confluence.util.ZipUtility
public class ZipUtility
- extends java.lang.Object
Copied from Fisheye com.cenqua.fisheye.util.Zipper
User: pkamal
Date: Oct 16, 2009
Time: 1:46:08 PM
To change this template use File | Settings | File Templates.
Nested Class Summary |
static interface |
ZipUtility.FileHandler
Callback that allows to transform/exchange the file to be added to the zip file. |
Method Summary |
void |
add(java.lang.String pathInZip,
java.io.File file)
Adds a file with a corresponding path to use in the actual zip archive. |
void |
zip(java.io.OutputStream destination)
Zip the files to the given destination. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipUtility
public ZipUtility()
ZipUtility
public ZipUtility(ZipUtility.FileHandler fileHandler)
add
public void add(java.lang.String pathInZip,
java.io.File file)
- Adds a file with a corresponding path to use in the actual zip archive.
- Parameters:
pathInZip
- file
-
zip
public void zip(java.io.OutputStream destination)
throws java.io.IOException
- Zip the files to the given destination.
- Parameters:
destination
- the place to zip the files to
- Throws:
java.io.IOException
Copyright © 2003-2014 Atlassian. All Rights Reserved.