HashMap meta = new HashMap(2, 1.5F);
meta.put(Record.MODIFIED, new Long(file.lastModified()));
if (metaOnly && file.exists()) {
return new Record(key, null, meta);
} else {
byte[] valueData = cache.getFile(file);
if (valueData != null) {
return new Record(key, new Value(valueData), meta);
}
}
} catch (IOException e) {
throw new FilerException(FaultCodes.DBE_CANNOT_READ,
"Can't read record '" + key + "': " + e.getMessage(), e);