List of usage examples for org.apache.commons.imaging.formats.tiff.constants ExifTagConstants ALL_EXIF_TAGS
List ALL_EXIF_TAGS
To view the source code for org.apache.commons.imaging.formats.tiff.constants ExifTagConstants ALL_EXIF_TAGS.
Click Source Link
From source file:adams.data.exif.commons.ExifTagEnum.java
/** * Initializes the items.//from w w w.ja v a 2s.com * * @return the items */ protected Item[] initialize() { List<Item> result; Set<String> unique; result = new ArrayList<>(); unique = new HashSet<>(); for (TagInfo tagInfo : ExifTagConstants.ALL_EXIF_TAGS) { if (unique.contains("" + tagInfo.tag)) continue; result.add(new Item(this, tagInfo)); unique.add("" + tagInfo.tag); } return result.toArray(new Item[0]); }
From source file:adams.data.exif.commons.ExifTagEnum.java
/** * Initializes the enum type./* ww w. ja va 2 s . c o m*/ * * @param id the ID of the enum type, can be null * @param display the display text, can be null */ public Item newItem(String id, String display) { for (TagInfo tagInfo : ExifTagConstants.ALL_EXIF_TAGS) { if (tagInfo.name.equals(id)) return new Item(this, tagInfo); } return null; }