public interface Tag
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.Modifier and Type | Method and Description |
---|---|
String |
getName()
Used to get the name of the tag (e.g.
|
<T> T |
parse(String value)
Parse given tag to the correct data format.
|
Copyright © 2015. All Rights Reserved.