exense-basic-commons/src/main/java/ch/exense/commons/io/FileHelper.java
/**
	 * Create a zip file of the directory denoted by the {@link File} passed as argument 
	 * @param directory the directory to be zipped
	 * @param out the output stream of the target zip file
	 * @throws IOException
	 */
Create a zip file of the directory denoted by the  File passed as argument
@param directory the directory to be zipped
@param out the output stream of the target zip file
@throws IOException
Create a zip file of the directory denoted by the File passed as argument @param directory the directory to be zipped @param out the output stream of the target zip file @throws IOException
public static final void zip(File directory, OutputStream out) throws IOException {
		ZipOutputStream zos = new ZipOutputStream(out);
		zos.setLevel(ZipOutputStream.STORED);
		zip(directory, directory, zos);
		zos.close();
	}
public static final void zip ( File directory , OutputStream out ) throws IOException { ZipOutputStream zos = new ZipOutputStream ( out ) ; zos . setLevel ( ZipOutputStream . STORED ) ; zip ( directory , directory , zos ) ; zos . close ( ) ; }
Create a zip file of the directory denoted by the {@link File} passed as argument
 @param directory the directory to be zipped
 @param out the output stream of the target zip file
 @throws IOException
Create a zip file of the directory denoted by the { @link File } passed as argument @param directory the directory to be zipped @param out the output stream of the target zip file @throws IOException