it.andynaz.utils
Class UtilsZIP

java.lang.Object
  extended by it.andynaz.utils.UtilsZIP

public class UtilsZIP
extends Object

Useful methods to manage compressed files.

Version:
2013/01/14
Author:
andynaz

Method Summary
static File createZip(File file)
          Compresses a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createZip

public static File createZip(File file)
                      throws IOException
Compresses a file. The complresse file created has the same name of the original file, with the .zip extension added. The file is create di the same posizion of the original file.

Parameters:
file - file to be compressed
Returns:
the compressed file
Throws:
NullPointerException - if file==null
FileNotFoundException - if the file does not exist
IOException - if I/O errors occour
See Also:
bits4beats


(c) 2013 andynaz - http://andynaz.altervista.org