Package 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.
-
-
Constructor Summary
Constructors Constructor Description JpegDescriptor(JpegDirectory directory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getComponentDataDescription(int componentNumber)
java.lang.String
getDataPrecisionDescription()
java.lang.String
getDescription(int tagType)
Returns a descriptive value of the specified tag for this image.java.lang.String
getImageCompressionTypeDescription()
java.lang.String
getImageHeightDescription()
java.lang.String
getImageWidthDescription()
-
Methods inherited from class com.drew.metadata.TagDescriptor
convertBytesToVersionString
-
-
-
-
Constructor Detail
-
JpegDescriptor
public JpegDescriptor(JpegDirectory directory)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription(int tagType)
Description copied from class:TagDescriptor
Returns a descriptive value of 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 bygetString(tagType)
will be returned.- Overrides:
getDescription
in classTagDescriptor<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 java.lang.String getImageCompressionTypeDescription()
-
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)
-
-