305,8 → 305,8 |
String mediumEnd = MEDIUM_SUFFIX + "." + format; |
*/ |
|
File origin; |
Map cache; |
File origin = null; |
Map cache = null; |
|
if(file.getName().endsWith(SMALL_SUFFIX + "." + format)) { |
origin = getOriginFile(file, SMALL_SUFFIX); |
332,15 → 332,18 |
logger.debug("load cached dir " + file.getCanonicalPath() |
+ " for " + origin.getCanonicalPath()); |
} |
else if(file.getName().endsWith(DIR_PART_SUFFIX + "." + format)) { |
if(logger.isDebugEnabled()) |
logger.debug("skip cached dir part " + file.getCanonicalPath()); |
} |
else { |
if(logger.isInfoEnabled()) |
logger.warn( |
"unknown type of cached " + file.getCanonicalPath()); |
|
return; |
} |
|
loadCacheInfo(file, origin, cache); |
if(origin != null && cache != null) |
loadCacheInfo(file, origin, cache); |
} |
|
protected void loadCacheInfo(File file, File origin, Map cache) |