public interface ExifData
Modifier and Type | Field and Description |
---|---|
static BinaryFunction<ExifData,BufferedInputStream,Connection> |
GENERATOR
Generator to create a new ExifData instance based on given
BufferedStream and Connection . |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Returns true if this
ExifData contains the specified element. |
boolean |
containsValue(ExifValue value)
Returns true if this
ExifData map maps one or more keys to the
specified value. |
Set<Map.Entry<String,ExifValue>> |
entrySet()
Get the tag-type-hex <->
ExifValue . |
ExifTag |
getTagName(String tagTypeHex)
Gets the associated exif tag.
|
ExifValue |
getValue(int tagType)
Gets the associated tag type exif value.
|
ExifValue |
getValue(String tagTypeHex)
Get the value for an exif hex tag type.
|
boolean |
isEmpty()
Returns true if this
ExifData contains no key-value mappings. |
int |
size()
Returns the number of exif key-value mappings in this
ExifData map. |
Collection<ExifValue> |
values()
Returns a
Collection view of the values contained in this ExifData . |
static final BinaryFunction<ExifData,BufferedInputStream,Connection> GENERATOR
BufferedStream
and Connection
.
Call invoke(BufferedStream, Connection)
on this generator to create a new ExifData instance.
Delivers null if an IOException occurred during reading from given stream.ExifValue getValue(String tagTypeHex)
tagTypeHex
- The tag type in hex notation as a String with padded leading zeroes if necessary (i.e. 0x100E
).ExifValueNotFoundException
- if a ExifValue
is not found for TagTypeHexfor known exif tags
ExifValue getValue(int tagType)
tagType
- The tag type as integerExifValueNotFoundException
- if a ExifValue
is not found for TagTypefor known exif tags
ExifTag getTagName(String tagTypeHex)
tagTypeHex
- The tag type in hex notation as a String with padded leading zeroes if necessary (i.e. 0x100E
).ExifValueNotFoundException
- if a ExifValue
is not found for TagTypeHexfor known exif tags
Set<Map.Entry<String,ExifValue>> entrySet()
ExifValue
.EXifValue's
boolean containsKey(String key)
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)).key
- element whose presence in this set is to be testedClassCastException
- 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)boolean containsValue(ExifValue value)
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.value
- value whose presence in this map is to be testedClassCastException
- 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)Collection<ExifValue> values()
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.int size()
ExifData
map.
If the ExifData
contains more than Integer.MAX_VALUE elements, returns
Integer.MAX_VALUE.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500