com.drew.metadata.jpeg
Class JpegDescriptor
java.lang.Object
com.drew.metadata.TagDescriptor
com.drew.metadata.jpeg.JpegDescriptor
- All Implemented Interfaces:
- java.io.Serializable
public class JpegDescriptor
- extends TagDescriptor
Provides human-readable string versions of the tags stored in a JpegDirectory.
Thanks to Darrell Silver (www.darrellsilver.com) for the initial version of this class.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpegDescriptor
public JpegDescriptor(Directory directory)
getDescription
public java.lang.String getDescription(int tagType)
throws MetadataException
- Description copied from class:
TagDescriptor
- 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.
- Specified by:
getDescription
in class TagDescriptor
- 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
getImageWidthDescription
public java.lang.String getImageWidthDescription()
getImageHeightDescription
public java.lang.String getImageHeightDescription()
getDataPrecisionDescription
public java.lang.String getDataPrecisionDescription()
getComponentDataDescription
public java.lang.String getComponentDataDescription(int componentNumber)
throws MetadataException
- Throws:
MetadataException
Copyright © 2006 Drew Noakes. All Rights Reserved.