com.drew.metadata.exif

Class ExifDescriptor

Implemented Interfaces:
Serializable

public class ExifDescriptor
extends TagDescriptor

Contains all logic for the presentation of raw Exif data, as stored in ExifDirectory. Use this class to provide human-readable descriptions of tag values.

Field Summary

Fields inherited from class com.drew.metadata.TagDescriptor

_directory

Constructor Summary

ExifDescriptor(Directory directory)

Method Summary

static String
convertBytesToVersionString(int[] components)
Takes a series of 4 bytes from the specified offset, and converts these to a well-known version number, where possible.
String
get35mmFilmEquivFocalLengthDescription()
String
getApertureValueDescription()
String
getBitsPerSampleDescription()
String
getColorSpaceDescription()
String
getComponentConfigurationDescription()
String
getCompressionDescription()
String
getCompressionLevelDescription()
String
getContrastDescription()
String
getCustomRenderedDescription()
String
getDescription(int tagType)
Returns a descriptive value of the the specified tag for this image.
String
getDigitalZoomRatioDescription()
String
getExifImageHeightDescription()
String
getExifImageWidthDescription()
String
getExifVersionDescription()
String
getExposureBiasDescription()
String
getExposureModeDescription()
String
getExposureProgramDescription()
String
getExposureTimeDescription()
String
getFNumberDescription()
String
getFileSourceDescription()
String
getFillOrderDescription()
String
getFlashDescription()
String
getFlashPixVersionDescription()
String
getFocalLengthDescription()
String
getFocalPlaneResolutionUnitDescription()
String
getFocalPlaneXResolutionDescription()
String
getFocalPlaneYResolutionDescription()
String
getGainControlDescription()
String
getIsoEquivalentDescription()
String
getMaxApertureValueDescription()
String
getMeteringModeDescription()
String
getNewSubfileTypeDescription()
String
getOrientationDescription()
String
getPhotometricInterpretationDescription()
String
getPlanarConfigurationDescription()
String
getReferenceBlackWhiteDescription()
String
getResolutionDescription()
String
getRowsPerStripDescription()
String
getSamplesPerPixelDescription()
String
getSaturationDescription()
String
getSceneCaptureTypeDescription()
String
getSceneTypeDescription()
String
getSensingMethodDescription()
String
getSharpnessDescription()
String
getShutterSpeedDescription()
String
getStripByteCountsDescription()
String
getSubfileTypeDescription()
String
getSubjectDistanceDescription()
String
getSubjectDistanceRangeDescription()
String
getThresholdingDescription()
String
getThumbnailDescription()
String
getThumbnailImageHeightDescription()
String
getThumbnailImageWidthDescription()
String
getThumbnailLengthDescription()
String
getThumbnailOffsetDescription()
String
getUserCommentDescription()
String
getWhiteBalanceDescription()
String
getWhiteBalanceModeDescription()
String
getWindowsAuthorDescription()
String
getWindowsCommentDescription()
String
getWindowsKeywordsDescription()
String
getWindowsSubjectDescription()
String
getWindowsTitleDescription()
String
getXResolutionDescription()
String
getYCbCrPositioningDescription()
String
getYCbCrSubsamplingDescription()
String
getYResolutionDescription()

Methods inherited from class com.drew.metadata.TagDescriptor

getDescription

Constructor Details

ExifDescriptor

public ExifDescriptor(Directory directory)

Method Details

convertBytesToVersionString

public static String convertBytesToVersionString(int[] components)
Takes a series of 4 bytes from the specified offset, and converts these to a well-known version number, where possible. For example, (hex) 30 32 31 30 == 2.10).
Parameters:
components - the four version values
Returns:
the version as a string of form 2.10

get35mmFilmEquivFocalLengthDescription

public String get35mmFilmEquivFocalLengthDescription()
            throws MetadataException

getApertureValueDescription

public String getApertureValueDescription()
            throws MetadataException

getBitsPerSampleDescription

public String getBitsPerSampleDescription()

getColorSpaceDescription

public String getColorSpaceDescription()
            throws MetadataException

getComponentConfigurationDescription

public String getComponentConfigurationDescription()
            throws MetadataException

getCompressionDescription

public String getCompressionDescription()
            throws MetadataException

getCompressionLevelDescription

public String getCompressionLevelDescription()
            throws MetadataException

getContrastDescription

public String getContrastDescription()
            throws MetadataException

getCustomRenderedDescription

public String getCustomRenderedDescription()
            throws MetadataException

getDescription

public 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.
Overrides:
getDescription in interface 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.

getDigitalZoomRatioDescription

public String getDigitalZoomRatioDescription()
            throws MetadataException

getExifImageHeightDescription

public String getExifImageHeightDescription()
            throws MetadataException

getExifImageWidthDescription

public String getExifImageWidthDescription()
            throws MetadataException

getExifVersionDescription

public String getExifVersionDescription()
            throws MetadataException

getExposureBiasDescription

public String getExposureBiasDescription()
            throws MetadataException

getExposureModeDescription

public String getExposureModeDescription()
            throws MetadataException

getExposureProgramDescription

public String getExposureProgramDescription()
            throws MetadataException

getExposureTimeDescription

public String getExposureTimeDescription()

getFNumberDescription

public String getFNumberDescription()
            throws MetadataException

getFileSourceDescription

public String getFileSourceDescription()
            throws MetadataException

getFillOrderDescription

public String getFillOrderDescription()
            throws MetadataException

getFlashDescription

public String getFlashDescription()
            throws MetadataException

getFlashPixVersionDescription

public String getFlashPixVersionDescription()
            throws MetadataException

getFocalLengthDescription

public String getFocalLengthDescription()
            throws MetadataException

getFocalPlaneResolutionUnitDescription

public String getFocalPlaneResolutionUnitDescription()
            throws MetadataException

getFocalPlaneXResolutionDescription

public String getFocalPlaneXResolutionDescription()
            throws MetadataException

getFocalPlaneYResolutionDescription

public String getFocalPlaneYResolutionDescription()
            throws MetadataException

getGainControlDescription

public String getGainControlDescription()
            throws MetadataException

getIsoEquivalentDescription

public String getIsoEquivalentDescription()
            throws MetadataException

getMaxApertureValueDescription

public String getMaxApertureValueDescription()
            throws MetadataException

getMeteringModeDescription

public String getMeteringModeDescription()
            throws MetadataException

getNewSubfileTypeDescription

public String getNewSubfileTypeDescription()
            throws MetadataException

getOrientationDescription

public String getOrientationDescription()
            throws MetadataException

getPhotometricInterpretationDescription

public String getPhotometricInterpretationDescription()
            throws MetadataException

getPlanarConfigurationDescription

public String getPlanarConfigurationDescription()
            throws MetadataException

getReferenceBlackWhiteDescription

public String getReferenceBlackWhiteDescription()
            throws MetadataException

getResolutionDescription

public String getResolutionDescription()
            throws MetadataException

getRowsPerStripDescription

public String getRowsPerStripDescription()

getSamplesPerPixelDescription

public String getSamplesPerPixelDescription()

getSaturationDescription

public String getSaturationDescription()
            throws MetadataException

getSceneCaptureTypeDescription

public String getSceneCaptureTypeDescription()
            throws MetadataException

getSceneTypeDescription

public String getSceneTypeDescription()
            throws MetadataException

getSensingMethodDescription

public String getSensingMethodDescription()
            throws MetadataException

getSharpnessDescription

public String getSharpnessDescription()
            throws MetadataException

getShutterSpeedDescription

public String getShutterSpeedDescription()
            throws MetadataException

getStripByteCountsDescription

public String getStripByteCountsDescription()

getSubfileTypeDescription

public String getSubfileTypeDescription()
            throws MetadataException

getSubjectDistanceDescription

public String getSubjectDistanceDescription()
            throws MetadataException

getSubjectDistanceRangeDescription

public String getSubjectDistanceRangeDescription()
            throws MetadataException

getThresholdingDescription

public String getThresholdingDescription()
            throws MetadataException

getThumbnailDescription

public String getThumbnailDescription()
            throws MetadataException

getThumbnailImageHeightDescription

public String getThumbnailImageHeightDescription()

getThumbnailImageWidthDescription

public String getThumbnailImageWidthDescription()

getThumbnailLengthDescription

public String getThumbnailLengthDescription()

getThumbnailOffsetDescription

public String getThumbnailOffsetDescription()

getUserCommentDescription

public String getUserCommentDescription()
            throws MetadataException

getWhiteBalanceDescription

public String getWhiteBalanceDescription()
            throws MetadataException

getWhiteBalanceModeDescription

public String getWhiteBalanceModeDescription()
            throws MetadataException

getWindowsAuthorDescription

public String getWindowsAuthorDescription()
            throws MetadataException

getWindowsCommentDescription

public String getWindowsCommentDescription()
            throws MetadataException

getWindowsKeywordsDescription

public String getWindowsKeywordsDescription()
            throws MetadataException

getWindowsSubjectDescription

public String getWindowsSubjectDescription()
            throws MetadataException

getWindowsTitleDescription

public String getWindowsTitleDescription()
            throws MetadataException

getXResolutionDescription

public String getXResolutionDescription()
            throws MetadataException

getYCbCrPositioningDescription

public String getYCbCrPositioningDescription()
            throws MetadataException

getYCbCrSubsamplingDescription

public String getYCbCrSubsamplingDescription()
            throws MetadataException

getYResolutionDescription

public String getYResolutionDescription()
            throws MetadataException

Copyright © 2006 Drew Noakes. All Rights Reserved.