public class ZipUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ZipUtil.ZipEntryCallback |
| Constructor and Description |
|---|
ZipUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFile(ZipOutputStream zipOutputStream,
InputStream inputStream,
String zipEntryName)
Add a file to a zip stream, without checking if already zipped.
|
static void |
addFile(ZipOutputStream zipOutputStream,
InputStream inputStream,
String zipEntryName,
long zipEntryTime)
Add a file to a zip stream specifiing zip entry time, without checking if
already zipped.
|
static void |
copyAndUpdateZipFile(ZipFile zipInputFile,
ZipOutputStream zipOutputStream,
ZipUtil.ZipEntryCallback callback) |
public static final void addFile(ZipOutputStream zipOutputStream, InputStream inputStream, String zipEntryName) throws IOException
zipOutputStream - OutputStream of the zip filezipEntryName - Zip entry name of the file to addIOExceptionpublic static final void addFile(ZipOutputStream zipOutputStream, InputStream inputStream, String zipEntryName, long zipEntryTime) throws IOException
zipOutputStream - OutputStream of the zip filezipEntryName - Zip entry name of the file to addzipEntryTime - Zip entry time of the file to addIOExceptionpublic static final void copyAndUpdateZipFile(ZipFile zipInputFile, ZipOutputStream zipOutputStream, ZipUtil.ZipEntryCallback callback) throws IOException, org.ow2.petals.jbi.descriptor.JBIDescriptorException
IOExceptionorg.ow2.petals.jbi.descriptor.JBIDescriptorExceptionCopyright © 2005-2015 Linagora. All Rights Reserved.