I have a snippet of Beanshell script that works using java.util.zip package. Take note that the "C:/Temp" and the test.zip file must exist in order for the script to work.
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
filename = "{{LISA_RELATIVE_PROJ_ROOT}}/Data/test.zip";
outputDir = "C:/Temp";
FileInputStream fis = new FileInputStream(filename);
ZipInputStream zin = new ZipInputStream(new BufferedInputStream(fis));
ZipEntry entry;
while((entry = zin.getNextEntry()) != null) {
_logger.info(String.format("Entry: %s len %d added %TD", entry.getName(),
entry.getSize(), new Date(entry.getTime())));
String outpath = outputDir + File.separator + entry.getName();
FileOutputStream fos = new FileOutputStream(outpath);
return true;
len = 0;
while((len = zin.read(buffer)) > 0) {
fos.write(buffer, 0, len);
}
}
fos.close();