Metadata Extractor Logo

com.drew.metadata
Class TagDescriptor

java.lang.Object
  extended by com.drew.metadata.TagDescriptor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CanonMakernoteDescriptor, CasioType1MakernoteDescriptor, CasioType2MakernoteDescriptor, DefaultTagDescriptor, ExifDescriptor, ExifInteropDescriptor, FujifilmMakernoteDescriptor, GpsDescriptor, IptcDescriptor, JpegCommentDescriptor, JpegDescriptor, KodakMakernoteDescriptor, KyoceraMakernoteDescriptor, NikonType1MakernoteDescriptor, NikonType2MakernoteDescriptor, OlympusMakernoteDescriptor, PanasonicMakernoteDescriptor, PentaxMakernoteDescriptor, SonyMakernoteDescriptor

public abstract class TagDescriptor
extends java.lang.Object
implements java.io.Serializable

Abstract base class for all tag descriptor classes. Implementations are responsible for providing the human-readable string represenation of tag values stored in a directory. The directory is provided to the tag descriptor via its constructor.

See Also:
Serialized Form

Field Summary
protected  Directory _directory
           
 
Constructor Summary
TagDescriptor(Directory directory)
           
 
Method Summary
abstract  java.lang.String getDescription(int tagType)
          Returns a descriptive value of the the specified tag for this image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_directory

protected final Directory _directory
Constructor Detail

TagDescriptor

public TagDescriptor(Directory directory)
Method Detail

getDescription

public abstract java.lang.String getDescription(int tagType)
                                         throws MetadataException
Returns a descriptive value of the the specified tag for this image. Where possible, known values will be substituted here in place of the raw tokens actually kept in the Exif segment. If no substitution is available, the value provided by getString(int) will be returned.

This and getString(int) are the only 'get' methods that won't throw an exception.

Parameters:
tagType - the tag to find a description for
Returns:
a description of the image's value for the specified tag, or null if the tag hasn't been defined.
Throws:
MetadataException

Metadata Extractor Logo

Copyright © 2006 Drew Noakes. All Rights Reserved.