andyLib v0.9.1

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:
2014/04/29
Author:
andynaz

Constructor Summary
private UtilsZIP()
           
 
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
 

Constructor Detail

UtilsZIP

private UtilsZIP()
Method Detail

createZip

public static File createZip(File file)
                      throws IOException
Compresses a file. The compressed file 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

andyLib v0.9.1

© 2013 andynaz - http://andynaz.altervista.org