com.drew.metadata
Class DefaultTagDescriptor
java.lang.Object
com.drew.metadata.TagDescriptor
com.drew.metadata.DefaultTagDescriptor
- All Implemented Interfaces:
- Serializable
public class DefaultTagDescriptor
- extends TagDescriptor
A default implementation of the abstract TagDescriptor. As this class is not coded with awareness of any metadata
tags, it simply reports tag names using the format 'Unknown tag 0x00' (with the corresponding tag number in hex)
and gives descriptions using the default string representation of the value.
- See Also:
- Serialized Form
Method Summary |
String |
getDescription(int tagType)
Gets the default string representation of the tag's value. |
String |
getTagName(int tagType)
Gets a best-effort tag name using the format 'Unknown tag 0x00' (with the corresponding tag type in hex). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTagDescriptor
public DefaultTagDescriptor(Directory directory)
getTagName
public String getTagName(int tagType)
- Gets a best-effort tag name using the format 'Unknown tag 0x00' (with the corresponding tag type in hex).
- Parameters:
tagType
- the tag type identifier.
- Returns:
- a string representation of the tag name.
getDescription
public String getDescription(int tagType)
- Gets the default string representation of the tag's value.
- Specified by:
getDescription
in class TagDescriptor
- Parameters:
tagType
- the tag type identifier.
- Returns:
- a string representation of the tag's value.