public class

ZipUtility

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.util.ZipUtility

Class Overview

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.

Summary

Nested Classes
interface ZipUtility.FileHandler Callback that allows to transform/exchange the file to be added to the zip file. 
Public Constructors
ZipUtility()
ZipUtility(ZipUtility.FileHandler fileHandler)
Public Methods
void add(String pathInZip, File file)
Adds a file with a corresponding path to use in the actual zip archive.
void zip(OutputStream destination)
Zip the files to the given destination.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ZipUtility ()

public ZipUtility (ZipUtility.FileHandler fileHandler)

Public Methods

public void add (String pathInZip, File file)

Adds a file with a corresponding path to use in the actual zip archive.

public void zip (OutputStream destination)

Zip the files to the given destination.

Parameters
destination the place to zip the files to
Throws
IOException