Lines Matching refs:filename
39 * XMPMeta xmpMeta = XmpUtil.extractOrCreateXMPMeta(filename);
41 * XmpUtil.writeXMPMeta(filename, xmpMeta);
46 * XmpUtil.writeXMPMeta(filename, xmpMeta);
81 * @param filename JPEG image file name.
84 public static XMPMeta extractXMPMeta(String filename) {
85 if (!filename.toLowerCase().endsWith(".jpg")
86 && !filename.toLowerCase().endsWith(".jpeg")) {
92 return extractXMPMeta(new FileInputStream(filename));
94 Log.e(TAG, "Could not read file: " + filename, e);
139 public static XMPMeta extractOrCreateXMPMeta(String filename) {
140 XMPMeta meta = extractXMPMeta(filename);
147 public static boolean writeXMPMeta(String filename, XMPMeta meta) {
148 if (!filename.toLowerCase().endsWith(".jpg")
149 && !filename.toLowerCase().endsWith(".jpeg")) {
155 sections = parse(new FileInputStream(filename), false);
161 Log.e(TAG, "Could not read file: " + filename, e);
167 os = new FileOutputStream(filename);
170 Log.d(TAG, "Write file failed:" + filename, e);