throw new IOException(zipFile+" is not a existing file");
if(zipFile.isDirectory()) {
Resource[] files = zipFile.listResources(
new OrResourceFilter(new ResourceFilter[]{
new ExtensionResourceFilter("zip"),
new ExtensionResourceFilter("jar"),
new ExtensionResourceFilter("war"),
new ExtensionResourceFilter("tar"),
new ExtensionResourceFilter("ear")
})
);
if(files==null)
throw new IOException("directory "+zipFile+" is empty");
extract(FORMAT_ZIP,files,targetDir);