Package com.thebuzzmedia.exiftool
Interface Tag
- All Known Implementing Classes:
NonConvertedTag
,StandardTag
,UnspecifiedTag
public interface Tag
A
A tag that can be easily parsed to a valid value using the
Implementations should not make an attempt at converting the value automatically in case the caller decides they would prefer tag values returned in
The types provided by each tag are merely a hint based on the ExifTool Tag Guide by Phil Harvey; the caller is free to parse or process the returned
Tag
is a value that can be easily extracted from images with
an external install of ExifTool.
A tag that can be easily parsed to a valid value using the
parse(String)
hint from each Tag
.
Using this method allow anyone to convert a string value to the correct
data format.
Implementations should not make an attempt at converting the value automatically in case the caller decides they would prefer tag values returned in
StandardFormat.HUMAN_READABLE
format and
to avoid any compatibility issues with future versions of ExifTool if a
tag's return value is changed.
This approach to leaving returned tag values as strings until
the caller decides they want to parse them is a safer and more robust
approach.
The types provided by each tag are merely a hint based on the ExifTool Tag Guide by Phil Harvey; the caller is free to parse or process the returned
String
values
any way they wish.- Since:
- 1.1
- Author:
- Riyad Kalla ([email protected]), Mickael Jeanroy
-
Method Summary
-
Method Details
-
getName
String getName()Used to get the name of the tag (e.g. "Orientation", "ISO", etc.). This is the value actually used to invoke the tool.- Returns:
- Name of the tag.
-
getDisplayName
String getDisplayName()Used to get the display name of the tag, which is the actual name printed by the tool on stout. For simple tags this is equivalent to value returned bygetName
.- Returns:
- Display name of the tag.
- Since:
- 2.4.0
-
parse
Parse given tag to the correct data format.- Type Parameters:
T
- Type of returned value.- Parameters:
value
- Tag Value.- Returns:
- Data associated with the tag.
-