com.drew.metadata
Class DefaultTagDescriptor

java.lang.Object
  extended by com.drew.metadata.TagDescriptor<Directory>
      extended by com.drew.metadata.DefaultTagDescriptor

public class DefaultTagDescriptor
extends TagDescriptor<Directory>

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.

Author:
Drew Noakes http://drewnoakes.com

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


Copyright © 2012. All Rights Reserved.