com.drew.metadata.exif
Class GpsDescriptor
java.lang.Object
com.drew.metadata.TagDescriptor
com.drew.metadata.exif.GpsDescriptor
- All Implemented Interfaces:
- Serializable
public class GpsDescriptor
- extends TagDescriptor
Provides human-readable string represenations of tag values stored in a GpsDirectory
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GpsDescriptor
public GpsDescriptor(Directory directory)
getDescription
public 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
getGpsLatitudeDescription
public String getGpsLatitudeDescription()
throws MetadataException
- Throws:
MetadataException
getGpsLongitudeDescription
public String getGpsLongitudeDescription()
throws MetadataException
- Throws:
MetadataException
getHoursMinutesSecondsDescription
public String getHoursMinutesSecondsDescription(int tagType)
throws MetadataException
- Throws:
MetadataException
getGpsTimeStampDescription
public String getGpsTimeStampDescription()
throws MetadataException
- Throws:
MetadataException
getGpsDestinationReferenceDescription
public String getGpsDestinationReferenceDescription()
getGpsDirectionDescription
public String getGpsDirectionDescription(int tagType)
getGpsDirectionReferenceDescription
public String getGpsDirectionReferenceDescription(int tagType)
getGpsSpeedRefDescription
public String getGpsSpeedRefDescription()
getGpsMeasureModeDescription
public String getGpsMeasureModeDescription()
getGpsStatusDescription
public String getGpsStatusDescription()
getGpsAltitudeRefDescription
public String getGpsAltitudeRefDescription()
throws MetadataException
- Throws:
MetadataException
getGpsAltitudeDescription
public String getGpsAltitudeDescription()
throws MetadataException
- Throws:
MetadataException