org.deegree.commons.utils.io
Class Zip

java.lang.Object
  extended by org.deegree.commons.utils.io.Zip

public class Zip
extends Object

Version:
$Revision: 29714 $, $Date: 2011-02-15 17:17:41 +0100 (Tue, 15 Feb 2011) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
Zip()
           
 
Method Summary
static void unzip(InputStream in, File dir)
           
static void unzip(InputStream in, File dir, boolean overwrite)
           
static void zip(File f, ZipOutputStream out, URI parent)
          .svn files/directories will be ignored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Zip

public Zip()
Method Detail

unzip

public static void unzip(InputStream in,
                         File dir,
                         boolean overwrite)
                  throws FileNotFoundException,
                         IOException
Throws:
FileNotFoundException
IOException

unzip

public static void unzip(InputStream in,
                         File dir)
                  throws IOException
Parameters:
in -
dir -
Throws:
IOException

zip

public static void zip(File f,
                       ZipOutputStream out,
                       URI parent)
                throws IOException
.svn files/directories will be ignored.

Parameters:
f -
out -
parent - may be null, all written paths in the zip will be relative to this one (default is f.toURI)
Throws:
IOException


Copyright © 2011. All Rights Reserved.