String path = file.getParent();
if (path == null) {
path = "";
}
ImageMetaValue pathValue = new StringMetaValue(path);
core.putValue(CORE_DIR_NAME, pathValue);
String name = file.getName();
ImageMetaValue nameValue = new StringMetaValue(name);
core.putValue(CORE_FILE_NAME, nameValue);
long length = file.length();
ImageMetaValue lengthValue = new UnsignedLongMetaValue(length);
core.putValue(CORE_FILE_SIZE, lengthValue);
long time = file.lastModified();
ImageMetaValue timeValue = new DateMetaValue(time);
core.putValue(CORE_FILE_DATE_TIME, timeValue);
return meta;
}