@Override public ElementHandler getHandler(final ExtensionProfile extProfile, String namespace, String localName, Attributes attrs) { return new XmlParser.ElementHandler() { @Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (Namespaces.EXIF.equals(namespace)) { ExifTag field = new ExifTag(localName); addRepeatingExtension(field); return field.getHandler(extProfile, namespace, localName, attrs); } return getExtensionHandler(extProfile, ExifTags.class, namespace, localName, attrs); } }; } }
@Override public ElementHandler getHandler(final ExtensionProfile extProfile, String namespace, String localName, Attributes attrs) { return new XmlParser.ElementHandler() { @Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (Namespaces.EXIF.equals(namespace)) { ExifTag field = new ExifTag(localName); addRepeatingExtension(field); return field.getHandler(extProfile, namespace, localName, attrs); } return getExtensionHandler(extProfile, ExifTags.class, namespace, localName, attrs); } }; } }
@Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (Namespaces.EXIF.equals(namespace)) { ExifTag field = new ExifTag(localName); addRepeatingExtension(field); return field.getHandler(extProfile, namespace, localName, attrs); } return getExtensionHandler(extProfile, ExifTags.class, namespace, localName, attrs); } };
@Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (Namespaces.EXIF.equals(namespace)) { ExifTag field = new ExifTag(localName); addRepeatingExtension(field); return field.getHandler(extProfile, namespace, localName, attrs); } return getExtensionHandler(extProfile, ExifTags.class, namespace, localName, attrs); } };
/** * Sets the value of a particular exif tag by name. */ public void setExifTagValue(String name, String value) { ExifTag tag = getExifTag(name); if (tag != null) { removeRepeatingExtension(tag); } if (value != null) { addRepeatingExtension(new ExifTag(name, value)); } }
/** * Sets the value of a particular exif tag by name. */ public void setExifTagValue(String name, String value) { ExifTag tag = getExifTag(name); if (tag != null) { removeRepeatingExtension(tag); } if (value != null) { addRepeatingExtension(new ExifTag(name, value)); } }