org.weborganic.ox.util
Class ZipUtils

java.lang.Object
  extended by org.weborganic.ox.util.ZipUtils

public final class ZipUtils
extends Object

A utility class for common Zip functions.

Version:
12 April 2012
Author:
Christophe Lauret

Method Summary
static void unzip(File src, File dest)
          Unzip the the file at the specified location.
static void zip(File src, File dest)
          Zip the specified file or folder.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

unzip

public static void unzip(File src,
                         File dest)
                  throws IOException
Unzip the the file at the specified location.

Parameters:
src - The file to unzip
dest - The destination folder
Throws:
IOException

zip

public static void zip(File src,
                       File dest)
                throws IOException
Zip the specified file or folder.

Parameters:
src - The folder to zip
dest - The destination zip
Throws:
IOException