com.drew.metadata.jpeg
Class JpegDescriptor
java.lang.Object
com.drew.metadata.TagDescriptor<JpegDirectory>
com.drew.metadata.jpeg.JpegDescriptor
public class JpegDescriptor
- extends TagDescriptor<JpegDirectory>
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.
- Author:
- Drew Noakes http://drewnoakes.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpegDescriptor
public JpegDescriptor(JpegDirectory directory)
getDescription
public String getDescription(int tagType)
- 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 metadata segment. If no substitution is
available, the value provided by
getString(tagType) will be returned.
- Overrides:
getDescription in class TagDescriptor<JpegDirectory>
- 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.
getImageCompressionTypeDescription
public String getImageCompressionTypeDescription()
getImageWidthDescription
public String getImageWidthDescription()
getImageHeightDescription
public String getImageHeightDescription()
getDataPrecisionDescription
public String getDataPrecisionDescription()
getComponentDataDescription
public String getComponentDataDescription(int componentNumber)
Copyright © 2012. All Rights Reserved.