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
	 * @return the byte array of the target zip
	 * @throws IOException
	 */
Create a zip file of the directory denoted by the  File passed as argument
@param directory the directory to be zipped
@return the byte array of the target zip
@throws IOException
Create a zip file of the directory denoted by the File passed as argument @param directory the directory to be zipped @return the byte array of the target zip @throws IOException
public static final byte[] zip(File directory) throws IOException {
		ByteArrayOutputStream out = new ByteArrayOutputStream();
		zip(directory, out);
		return out.toByteArray();
	}
public static final byte [ ] zip ( File directory ) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; zip ( directory , out ) ; return out . toByteArray ( ) ; }
Create a zip file of the directory denoted by the {@link File} passed as argument
 @param directory the directory to be zipped
 @return the byte array of the target zip
 @throws IOException
Create a zip file of the directory denoted by the { @link File } passed as argument @param directory the directory to be zipped @return the byte array of the target zip @throws IOException