We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5754a0d commit b21bcfbCopy full SHA for b21bcfb
1 file changed
Source/com/drew/metadata/Directory.java
@@ -1147,6 +1147,26 @@ public String getDescription(int tagType)
1147
return _descriptor.getDescription(tagType);
1148
}
1149
1150
+ /**
1151
+ * Provides a mapping from tag name to it's value.
1152
+ * Only nonnull values are returned.
1153
+ *
1154
+ * @return Map<String, Object>
1155
+ */
1156
+ public Map<String, Object> getTagMap()
1157
+ {
1158
+ final Map<String, Object> tagMap = new HashMap<String, Object>();
1159
+ for (Map.Entry<Integer, String> entry : getTagNameMap().entrySet())
1160
1161
+ final Object value = _tagMap.get(entry.getKey());
1162
+ if (value != null)
1163
1164
+ tagMap.put(entry.getValue(), value);
1165
+ }
1166
1167
+ return Collections.unmodifiableMap(tagMap);
1168
1169
+
1170
@Override
1171
public String toString()
1172
{
0 commit comments