Interface ExifData
@NonExtendable
public interface ExifData
- Since:
- 5.0.100
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BiFunction<BufferedInputStream,
Connection, ExifData> Generator to create a new ExifData instance based on givenBufferedInputStream
andConnection
.static final BinaryFunction<ExifData,
BufferedInputStream, Connection> Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) Returnstrue
if thisExifData
contains the specified element.boolean
containsValue
(ExifValue value) Returnstrue
if thisExifData
map 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.boolean
isEmpty()
Returnstrue
if thisExifData
contains no key-value mappings.int
size()
Returns the number of exif key-value mappings in thisExifData
map.values()
Returns aCollection
view 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_GENERATOR
insteadGenerator to create a new ExifData instance based on givenBufferedInputStream
andConnection
. 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 givenBufferedInputStream
andConnection
. 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 aExifValue
is 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 aExifValue
is 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 aExifValue
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
Returnstrue
if thisExifData
contains the specified element. More formally, returnstrue
if and only if this set contains an elemente
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
Returnstrue
if thisExifData
map maps one or more keys to the specified value. More formally, returnstrue
if and only if this map contains at least one mapping to a valuev
such that(value==null ? v==null : value.equals(v))
. This operation will probably require time linear in the map size for most implementations of theMap
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
Collection<ExifValue> values()Returns aCollection
view 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 ownremove
operation), 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
,retainAll
andclear
operations. It does not support theadd
oraddAll
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 thisExifData
map. If theExifData
contains more thanInteger.MAX_VALUE
elements, returnsInteger.MAX_VALUE
.- Returns:
- the number of key-value mappings in this map
- Since:
- 5.0.100
-
isEmpty
boolean isEmpty()Returnstrue
if thisExifData
contains no key-value mappings.- Returns:
true
if thisExifData
contains no key-value mappings- Since:
- 5.0.100
-
EXIF_DATA_GENERATOR
instead