public final class ZipUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
zipDataToFile(File file,
String zipEntryName,
byte[] data)
Writes the given data zipped to a
File. |
static void |
zipStringToFile(File file,
String zipEntryName,
String stringToZip)
|
public static void zipDataToFile(File file, String zipEntryName, byte[] data) throws IOException
File.file - File to write the zipped String to.zipEntryName - The data will be written to a virtual file (ZipEntry) inside the zip. This is the name of this filedata - data to be zipped.IOExceptionpublic static void zipStringToFile(File file, String zipEntryName, String stringToZip) throws IOException
IOExceptionzipDataToFile(File, String, byte[])Created by ThK-Systems. License: LGPL