org.exoplatform.commons.utils.io
Class ZipUtil

java.lang.Object
  extended by org.exoplatform.commons.utils.io.ZipUtil

public class ZipUtil
extends java.lang.Object

Created by The eXo Platform SAS Author : Thuannd nhudinhthuan@yahoo.com Feb 6, 2006


Constructor Summary
ZipUtil()
           
 
Method Summary
 java.io.ByteArrayOutputStream addToArchive(java.io.File input, boolean containParent)
           
 void addToArchive(java.io.File input, java.io.File output, boolean containParent)
           
 java.util.zip.ZipOutputStream addToArchive(java.io.File input, java.io.OutputStream output, boolean containParent)
           
 java.io.ByteArrayOutputStream addToArchive(java.io.InputStream input, java.lang.String entryName)
           
 java.util.zip.ZipOutputStream addToArchive(java.util.zip.ZipOutputStream zipOutput, byte[] d, java.lang.String entryName)
           
 java.util.zip.ZipOutputStream addToArchive(java.util.zip.ZipOutputStream zipOutput, java.io.InputStream input, java.lang.String entryName)
           
 void extractFromArchive(java.io.File input, java.lang.String output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipUtil

public ZipUtil()
Method Detail

addToArchive

public void addToArchive(java.io.File input,
                         java.io.File output,
                         boolean containParent)
                  throws java.lang.Exception
Throws:
java.lang.Exception

addToArchive

public java.io.ByteArrayOutputStream addToArchive(java.io.File input,
                                                  boolean containParent)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

addToArchive

public java.util.zip.ZipOutputStream addToArchive(java.io.File input,
                                                  java.io.OutputStream output,
                                                  boolean containParent)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

addToArchive

public java.io.ByteArrayOutputStream addToArchive(java.io.InputStream input,
                                                  java.lang.String entryName)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

addToArchive

public java.util.zip.ZipOutputStream addToArchive(java.util.zip.ZipOutputStream zipOutput,
                                                  java.io.InputStream input,
                                                  java.lang.String entryName)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

addToArchive

public java.util.zip.ZipOutputStream addToArchive(java.util.zip.ZipOutputStream zipOutput,
                                                  byte[] d,
                                                  java.lang.String entryName)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

extractFromArchive

public void extractFromArchive(java.io.File input,
                               java.lang.String output)
                        throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.