exense-basic-commons/src/main/java/ch/exense/commons/io/FileHelper.java
/**
	 * Add provided file as byte array to the zip output stream
	 * @param zos zip output stream
	 * @param jsonStream bytearray output stream to be added to the zip
	 * @param name of the zip entry
	 */
Add provided file as byte array to the zip output stream
@param zos zip output stream
@param jsonStream bytearray output stream to be added to the zip
@param name of the zip entry
Add provided file as byte array to the zip output stream @param zos zip output stream @param jsonStream bytearray output stream to be added to the zip @param name of the zip entry
public static void zipFile(ZipOutputStream zos, ByteArrayOutputStream jsonStream, String name) throws IOException {
		ZipEntry entryJson = new ZipEntry(name.replaceAll("\\\\","/"));
		zos.putNextEntry(entryJson);
		zos.write(jsonStream.toByteArray());
	}
public static void zipFile ( ZipOutputStream zos , ByteArrayOutputStream jsonStream , String name ) throws IOException { ZipEntry entryJson = new ZipEntry ( name . replaceAll ( "\\\\" , "/" ) ) ; zos . putNextEntry ( entryJson ) ; zos . write ( jsonStream . toByteArray ( ) ) ; }
Add provided file as byte array to the zip output stream
 @param zos zip output stream
 @param jsonStream bytearray output stream to be added to the zip
 @param name of the zip entry
Add provided file as byte array to the zip output stream @param zos zip output stream @param jsonStream bytearray output stream to be added to the zip @param name of the zip entry