org.ow2.petals.plugin.jbiplugin.util
Class ZipUtil
java.lang.Object
org.ow2.petals.plugin.jbiplugin.util.ZipUtil
public class ZipUtil
- extends java.lang.Object
|
Method Summary |
static void |
addDirectory(java.util.zip.ZipOutputStream zipOutputStream,
java.lang.String zipEntryName)
Add a directory to a zip stream, without checking if already zipped. |
static void |
addFile(java.util.zip.ZipOutputStream zipOutputStream,
java.io.InputStream inputStream,
java.lang.String zipEntryName)
Add a file to a zip stream, without checking if already zipped. |
static void |
addFile(java.util.zip.ZipOutputStream zipOutputStream,
java.io.InputStream inputStream,
java.lang.String zipEntryName,
long zipEntryTime)
Add a file to a zip stream specifying zip entry time, without checking if already zipped. |
static void |
copyAndUpdateZipFile(java.util.zip.ZipFile zipInputFile,
java.util.zip.ZipOutputStream zipOutputStream,
ZipUtil.ZipEntryCallback callback)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addFile
public static final void addFile(java.util.zip.ZipOutputStream zipOutputStream,
java.io.InputStream inputStream,
java.lang.String zipEntryName)
throws java.io.IOException
- Add a file to a zip stream, without checking if already zipped.
- Parameters:
zipOutputStream - OutputStream of the zip filezipEntryName - Zip entry name of the file to add
- Throws:
java.io.IOException
addFile
public static final void addFile(java.util.zip.ZipOutputStream zipOutputStream,
java.io.InputStream inputStream,
java.lang.String zipEntryName,
long zipEntryTime)
throws java.io.IOException
- Add a file to a zip stream specifying zip entry time, without checking if already zipped.
- Parameters:
zipOutputStream - OutputStream of the zip fileinputStream - InputStream of the file to addzipEntryName - Zip entry name of the file to addzipEntryTime - Zip entry time of the file to add
- Throws:
java.io.IOException
copyAndUpdateZipFile
public static final void copyAndUpdateZipFile(java.util.zip.ZipFile zipInputFile,
java.util.zip.ZipOutputStream zipOutputStream,
ZipUtil.ZipEntryCallback callback)
throws java.io.IOException,
org.apache.maven.plugin.MojoExecutionException
- Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
addDirectory
public static final void addDirectory(java.util.zip.ZipOutputStream zipOutputStream,
java.lang.String zipEntryName)
throws java.io.IOException
- Add a directory to a zip stream, without checking if already zipped.
- Parameters:
zipOutputStream - OutputStream of the zip filezipEntryName - Zip entry name of the directory to add
- Throws:
java.io.IOException
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.