com.drew.metadata
Class DefaultTagDescriptor

java.lang.Object
  extended by com.drew.metadata.TagDescriptor
      extended by 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

Field Summary
 
Fields inherited from class com.drew.metadata.TagDescriptor
_directory
 
Constructor Summary
DefaultTagDescriptor(Directory directory)
           
 
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
 

Constructor Detail

DefaultTagDescriptor

public DefaultTagDescriptor(Directory directory)
Method Detail

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.