//double fileSize = entry.getSize(); //returns -1
if (!(name.endsWith(".tif")||name.endsWith(".dcm")))
throw new IOException("This ZIP archive does not appear to contain a .tif or .dcm file");
if (name.endsWith(".dcm")) {
DICOM dcm = new DICOM(zin);
dcm.run(name);
return dcm;
} else
return openTiff(zin, name);
}