eXo Kernel :: Commons Utils 2.4.10-UXP01

org.exoplatform.commons.utils.io
Class ZipUtil

java.lang.Object
  extended by 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
ZipUtil()
           
 
Method Summary
 ByteArrayOutputStream addToArchive(File input, boolean containParent)
           
 void addToArchive(File input, File output, boolean containParent)
           
 ZipOutputStream addToArchive(File input, OutputStream output, boolean containParent)
           
 ByteArrayOutputStream addToArchive(InputStream input, String entryName)
           
 ZipOutputStream addToArchive(ZipOutputStream zipOutput, byte[] d, String entryName)
           
 ZipOutputStream addToArchive(ZipOutputStream zipOutput, InputStream input, String entryName)
           
 void extractFromArchive(File input, 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(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

extractFromArchive

public void extractFromArchive(File input,
                               String output)
                        throws Exception
Throws:
Exception

eXo Kernel :: Commons Utils 2.4.10-UXP01

Copyright © 2014 eXo Platform SAS. All Rights Reserved.