Package org.exoplatform.commons.utils.io
Class ZipUtil
- java.lang.Object
-
- org.exoplatform.commons.utils.io.ZipUtil
-
public class ZipUtil extends Object
Created by The eXo Platform SAS Author : Thuannd nhudinhthuan@yahoo.com Feb 6, 2006
-
-
Constructor Summary
Constructors Constructor Description ZipUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayOutputStreamaddToArchive(File input, boolean containParent)voidaddToArchive(File input, File output, boolean containParent)ZipOutputStreamaddToArchive(File input, OutputStream output, boolean containParent)ByteArrayOutputStreamaddToArchive(InputStream input, String entryName)ZipOutputStreamaddToArchive(ZipOutputStream zipOutput, byte[] d, String entryName)ZipOutputStreamaddToArchive(ZipOutputStream zipOutput, InputStream input, String entryName)voidextractFromArchive(File input, String output)
-
-
-
Method Detail
-
addToArchive
public void addToArchive(File input, File output, boolean containParent) throws Exception
- Throws:
Exception
-
addToArchive
public ByteArrayOutputStream addToArchive(File input, boolean containParent) throws Exception
- Throws:
Exception
-
addToArchive
public ZipOutputStream addToArchive(File input, OutputStream output, boolean containParent) throws Exception
- Throws:
Exception
-
addToArchive
public ByteArrayOutputStream addToArchive(InputStream input, String entryName) throws Exception
- Throws:
Exception
-
addToArchive
public ZipOutputStream addToArchive(ZipOutputStream zipOutput, InputStream input, String entryName) throws Exception
- Throws:
Exception
-
addToArchive
public ZipOutputStream addToArchive(ZipOutputStream zipOutput, byte[] d, String entryName) throws Exception
- Throws:
Exception
-
-