@NonExtendable public interface ExifData
Exif data holder object. Holds a collection of ExifTags to ExifValue mapping.
Since:
5.0.100
See Also:
  • Field Details

  • Method Details

    • getValue

      ExifValue getValue(String tagTypeHex)
      Get the value for an exif hex tag type.
      Parameters:
      tagTypeHex - The tag type in hex notation as a String with padded leading zeroes if necessary (i.e. 0x100E).
      Returns:
      the associated exif value
      Throws:
      ExifValueNotFoundException - if a ExifValue is not found for TagTypeHex
      Since:
      5.0.100
      See Also:
    • getValue

      ExifValue getValue(int tagType)
      Gets the associated tag type exif value.
      Parameters:
      tagType - The tag type as integer
      Returns:
      the associated exif value
      Throws:
      ExifValueNotFoundException - if a ExifValue is not found for TagType
      Since:
      5.0.100
      See Also:
    • getTagName

      ExifTag getTagName(String tagTypeHex)
      Gets the associated exif tag.
      Parameters:
      tagTypeHex - The tag type in hex notation as a String with padded leading zeroes if necessary (i.e. 0x100E).
      Returns:
      the associated exif tag
      Throws:
      ExifValueNotFoundException - if a ExifValue is not found for TagTypeHex
      Since:
      5.0.100
      See Also:
    • entrySet

      Get the tag-type-hex ↔ ExifValue.
      Returns:
      the tag-type-hex ↔ EXifValue's
      Since:
      5.0.100
    • containsKey

      boolean containsKey(String key)
      Returns true if this ExifData contains the specified element. More formally, returns true if and only if this set contains an element e such that (o==null ? e==null : o.equals(e)).
      Parameters:
      key - element whose presence in this set is to be tested
      Returns:
      true if this set contains the specified element
      Throws:
      ClassCastException - if the type of the specified element is incompatible with this set (optional)
      NullPointerException - if the specified element is null and this set does not permit null elements (optional)
      Since:
      5.0.100
    • containsValue

      boolean containsValue(ExifValue value)
      Returns true if this ExifData map maps one or more keys to the specified value. More formally, returns true if and only if this map contains at least one mapping to a value v such that (value==null ? v==null : value.equals(v)). This operation will probably require time linear in the map size for most implementations of the Map interface.
      Parameters:
      value - value whose presence in this map is to be tested
      Returns:
      true if this map maps one or more keys to the specified value
      Throws:
      ClassCastException - if the value is of an inappropriate type for this map (optional)
      NullPointerException - if the specified value is null and this map does not permit null values (optional)
      Since:
      5.0.100
    • values

      Returns a Collection view of the values contained in this ExifData . The collection is backed by the map, so changes to the map are reflected in the collection, and vice-versa. If the map is modified while an iteration over the collection is in progress (except through the iterator's own remove operation), the results of the iteration are undefined. The collection supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Collection.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.
      Returns:
      a collection view of the values contained in this map
      Since:
      5.0.100
    • size

      int size()
      Returns the number of exif key-value mappings in this ExifData map. If the ExifData contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
      Returns:
      the number of key-value mappings in this map
      Since:
      5.0.100
    • isEmpty

      boolean isEmpty()
      Returns true if this ExifData contains no key-value mappings.
      Returns:
      true if this ExifData contains no key-value mappings
      Since:
      5.0.100