private final Map compressResources= new ReferenceMap(ReferenceMap.SOFT,ReferenceMap.SOFT);
public Compress getCompressInstance(Resource zipFile, int format, boolean caseSensitive) {
Compress compress=(Compress) compressResources.get(zipFile.getPath());
if(compress==null) {
compress=new Compress(zipFile,format,caseSensitive);
compressResources.put(zipFile.getPath(), compress);
}
return compress;
}