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
|
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 |
ZipUtil
public ZipUtil()
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
Copyright © 2009 eXo Platform SAS. All Rights Reserved.