Interface ExifData
@NonExtendable
public interface ExifData
- Since:
- 5.0.100
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiFunction<BufferedInputStream,Connection, ExifData> Generator to create a new ExifData instance based on givenBufferedInputStreamandConnection.static final BinaryFunction<ExifData,BufferedInputStream, Connection> Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Returnstrueif thisExifDatacontains the specified element.booleancontainsValue(ExifValue value) Returnstrueif thisExifDatamap maps one or more keys to the specified value.entrySet()Get the tag-type-hex ↔ExifValue.getTagName(String tagTypeHex) Gets the associated exif tag.getValue(int tagType) Gets the associated tag type exif value.Get the value for an exif hex tag type.booleanisEmpty()Returnstrueif thisExifDatacontains no key-value mappings.intsize()Returns the number of exif key-value mappings in thisExifDatamap.values()Returns aCollectionview of the values contained in thisExifData.
-
Field Details
-
GENERATOR
@Deprecated(since="5.2.231004", forRemoval=true) static final BinaryFunction<ExifData,BufferedInputStream, GENERATORConnection> Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.231004 - UseEXIF_DATA_GENERATORinsteadGenerator to create a new ExifData instance based on givenBufferedInputStreamandConnection. Callinvoke(BufferedInputStream, Connection)on this generator to create a new ExifData instance. Delivers null if an IOException occurred during reading from given stream.- Since:
- 5.0.100
-
EXIF_DATA_GENERATOR
Generator to create a new ExifData instance based on givenBufferedInputStreamandConnection. Callapply(BufferedInputStream, Connection)on this generator to create a new ExifData instance. Delivers null if an IOException occurred during reading from given stream.- Since:
- 5.2.231004
-
-
Method Details
-
getValue
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 aExifValueis not found for TagTypeHex- Since:
- 5.0.100
- See Also:
-
getValue
Gets the associated tag type exif value.- Parameters:
tagType- The tag type as integer- Returns:
- the associated exif value
- Throws:
ExifValueNotFoundException- if aExifValueis not found for TagType- Since:
- 5.0.100
- See Also:
-
getTagName
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 aExifValueis 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
Returnstrueif thisExifDatacontains the specified element. More formally, returnstrueif and only if this set contains an elementesuch that(o==null ? e==null : o.equals(e)).- Parameters:
key- element whose presence in this set is to be tested- Returns:
trueif 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
Returnstrueif thisExifDatamap maps one or more keys to the specified value. More formally, returnstrueif and only if this map contains at least one mapping to a valuevsuch that(value==null ? v==null : value.equals(v)). This operation will probably require time linear in the map size for most implementations of theMapinterface.- Parameters:
value- value whose presence in this map is to be tested- Returns:
trueif 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
Collection<ExifValue> values()Returns aCollectionview of the values contained in thisExifData. 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 ownremoveoperation), the results of the iteration are undefined. The collection supports element removal, which removes the corresponding mapping from the map, via theIterator.remove,Collection.remove,removeAll,retainAllandclearoperations. It does not support theaddoraddAlloperations.- 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 thisExifDatamap. If theExifDatacontains more thanInteger.MAX_VALUEelements, returnsInteger.MAX_VALUE.- Returns:
- the number of key-value mappings in this map
- Since:
- 5.0.100
-
isEmpty
boolean isEmpty()Returnstrueif thisExifDatacontains no key-value mappings.- Returns:
trueif thisExifDatacontains no key-value mappings- Since:
- 5.0.100
-
EXIF_DATA_GENERATORinstead