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);