public class ZipUtility
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ZipUtility |
singleton() |
void |
unzip(byte[] pZipContents,
java.lang.String pTargetDirectory) |
byte[] |
zip(java.io.File pSourceDirectory) |
byte[] |
zip(java.util.Map<java.lang.String,java.lang.String> pData)
Take a map and add all of them to a zip file
|
public static ZipUtility singleton()
public byte[] zip(java.util.Map<java.lang.String,java.lang.String> pData) throws java.io.IOException
pData
- Map with the key being the name of the file and a string with the data to writejava.io.IOException
public byte[] zip(java.io.File pSourceDirectory) throws java.io.IOException
java.io.IOException
public void unzip(byte[] pZipContents, java.lang.String pTargetDirectory) throws java.io.IOException
java.io.IOException