Enumeration<? extends ZipEntry> list = zf.entries();
client.notifyStarted(zf.size());
while (list.hasMoreElements() && !canceled) {
ZipEntry ze = list.nextElement();
BufferedInputStream bis = new BufferedInputStream(zf.getInputStream(ze));
String name = ze.getName();
client.notifyMessage(DcResources.getText("msgProcessingFileX", name));
if (name.toLowerCase().endsWith(".xsl")) {
// directory name is contained in the name
writeToFile(bis, new File(DataCrow.reportDir, name));
} else if (name.toLowerCase().endsWith(".jpg")) {
String moduleName = name.substring(0, name.indexOf("_"));
Collection<DcImageIcon> c = icons.get(moduleName);
c = c == null ? new ArrayList<DcImageIcon>() : c;
int size = (int) ze.getSize();
byte[] bytes = new byte[size];
bis.read(bytes);
DcImageIcon icon = new DcImageIcon(bytes);
icon.setFilename(name.substring(name.indexOf("_") + 1));