Package com.drew.metadata.exif
Class ExifSubIFDDirectory
- java.lang.Object
-
- com.drew.metadata.Directory
-
- com.drew.metadata.exif.ExifDirectoryBase
-
- com.drew.metadata.exif.ExifSubIFDDirectory
-
public class ExifSubIFDDirectory extends ExifDirectoryBase
Describes Exif tags from the SubIFD directory.
-
-
Field Summary
Fields Modifier and Type Field Description static int
TAG_INTEROP_OFFSET
This tag is a pointer to the Exif Interop IFD.-
Fields inherited from class com.drew.metadata.exif.ExifDirectoryBase
TAG_35MM_FILM_EQUIV_FOCAL_LENGTH, TAG_APERTURE, TAG_APPLICATION_NOTES, TAG_ARTIST, TAG_BATTERY_LEVEL, TAG_BITS_PER_SAMPLE, TAG_BODY_SERIAL_NUMBER, TAG_BRIGHTNESS_VALUE, TAG_CAMERA_OWNER_NAME, TAG_CFA_PATTERN, TAG_CFA_PATTERN_2, TAG_CFA_REPEAT_PATTERN_DIM, TAG_COLOR_SPACE, TAG_COMPONENTS_CONFIGURATION, TAG_COMPRESSED_AVERAGE_BITS_PER_PIXEL, TAG_COMPRESSION, TAG_CONTRAST, TAG_COPYRIGHT, TAG_CUSTOM_RENDERED, TAG_DATETIME, TAG_DATETIME_DIGITIZED, TAG_DATETIME_ORIGINAL, TAG_DEVICE_SETTING_DESCRIPTION, TAG_DIGITAL_ZOOM_RATIO, TAG_DOCUMENT_NAME, TAG_EXIF_IMAGE_HEIGHT, TAG_EXIF_IMAGE_WIDTH, TAG_EXIF_VERSION, TAG_EXPOSURE_BIAS, TAG_EXPOSURE_INDEX, TAG_EXPOSURE_INDEX_TIFF_EP, TAG_EXPOSURE_MODE, TAG_EXPOSURE_PROGRAM, TAG_EXPOSURE_TIME, TAG_FILE_SOURCE, TAG_FILL_ORDER, TAG_FLASH, TAG_FLASH_ENERGY, TAG_FLASH_ENERGY_TIFF_EP, TAG_FLASHPIX_VERSION, TAG_FNUMBER, TAG_FOCAL_LENGTH, TAG_FOCAL_PLANE_RESOLUTION_UNIT, TAG_FOCAL_PLANE_X_RESOLUTION, TAG_FOCAL_PLANE_X_RESOLUTION_TIFF_EP, TAG_FOCAL_PLANE_Y_RESOLUTION, TAG_FOCAL_PLANE_Y_RESOLUTION_TIFF_EP, TAG_GAIN_CONTROL, TAG_GAMMA, TAG_HOST_COMPUTER, TAG_IMAGE_DESCRIPTION, TAG_IMAGE_HEIGHT, TAG_IMAGE_HISTORY, TAG_IMAGE_NUMBER, TAG_IMAGE_UNIQUE_ID, TAG_IMAGE_WIDTH, TAG_INTER_COLOR_PROFILE, TAG_INTERLACE, TAG_INTEROP_INDEX, TAG_INTEROP_VERSION, TAG_IPTC_NAA, TAG_ISO_EQUIVALENT, TAG_JPEG_AC_TABLES, TAG_JPEG_DC_TABLES, TAG_JPEG_LOSSLESS_PREDICTORS, TAG_JPEG_POINT_TRANSFORMS, TAG_JPEG_PROC, TAG_JPEG_Q_TABLES, TAG_JPEG_RESTART_INTERVAL, TAG_JPEG_TABLES, TAG_LENS, TAG_LENS_MAKE, TAG_LENS_MODEL, TAG_LENS_SERIAL_NUMBER, TAG_LENS_SPECIFICATION, TAG_LIGHT_SOURCE, TAG_MAKE, TAG_MAKERNOTE, TAG_MAX_APERTURE, TAG_MAX_SAMPLE_VALUE, TAG_METERING_MODE, TAG_MIN_SAMPLE_VALUE, TAG_MODEL, TAG_NEW_SUBFILE_TYPE, TAG_NOISE, TAG_OPTO_ELECTRIC_CONVERSION_FUNCTION, TAG_ORIENTATION, TAG_PADDING, TAG_PAGE_NAME, TAG_PAGE_NUMBER, TAG_PANASONIC_TITLE, TAG_PANASONIC_TITLE_2, TAG_PHOTOMETRIC_INTERPRETATION, TAG_PLANAR_CONFIGURATION, TAG_PREDICTOR, TAG_PRIMARY_CHROMATICITIES, TAG_PRINT_IMAGE_MATCHING_INFO, TAG_RATING, TAG_RECOMMENDED_EXPOSURE_INDEX, TAG_REFERENCE_BLACK_WHITE, TAG_RELATED_IMAGE_FILE_FORMAT, TAG_RELATED_IMAGE_HEIGHT, TAG_RELATED_IMAGE_WIDTH, TAG_RELATED_SOUND_FILE, TAG_RESOLUTION_UNIT, TAG_ROWS_PER_STRIP, TAG_SAMPLES_PER_PIXEL, TAG_SATURATION, TAG_SCENE_CAPTURE_TYPE, TAG_SCENE_TYPE, TAG_SECURITY_CLASSIFICATION, TAG_SELF_TIMER_MODE, TAG_SELF_TIMER_MODE_TIFF_EP, TAG_SENSING_METHOD, TAG_SENSITIVITY_TYPE, TAG_SHARPNESS, TAG_SHUTTER_SPEED, TAG_SOFTWARE, TAG_SPATIAL_FREQ_RESPONSE, TAG_SPATIAL_FREQ_RESPONSE_TIFF_EP, TAG_SPECTRAL_SENSITIVITY, TAG_STANDARD_ID_TIFF_EP, TAG_STANDARD_OUTPUT_SENSITIVITY, TAG_STRIP_BYTE_COUNTS, TAG_STRIP_OFFSETS, TAG_STRIP_ROW_COUNTS, TAG_SUB_IFD_OFFSET, TAG_SUBFILE_TYPE, TAG_SUBJECT_DISTANCE, TAG_SUBJECT_DISTANCE_RANGE, TAG_SUBJECT_LOCATION, TAG_SUBJECT_LOCATION_TIFF_EP, TAG_SUBSECOND_TIME, TAG_SUBSECOND_TIME_DIGITIZED, TAG_SUBSECOND_TIME_ORIGINAL, TAG_THRESHOLDING, TAG_TILE_BYTE_COUNTS, TAG_TILE_LENGTH, TAG_TILE_OFFSETS, TAG_TILE_WIDTH, TAG_TIME_ZONE_OFFSET, TAG_TIME_ZONE_OFFSET_TIFF_EP, TAG_TRANSFER_FUNCTION, TAG_TRANSFER_RANGE, TAG_USER_COMMENT, TAG_WHITE_BALANCE, TAG_WHITE_BALANCE_MODE, TAG_WHITE_POINT, TAG_WIN_AUTHOR, TAG_WIN_COMMENT, TAG_WIN_KEYWORDS, TAG_WIN_SUBJECT, TAG_WIN_TITLE, TAG_X_RESOLUTION, TAG_Y_RESOLUTION, TAG_YCBCR_COEFFICIENTS, TAG_YCBCR_POSITIONING, TAG_YCBCR_SUBSAMPLING
-
-
Constructor Summary
Constructors Constructor Description ExifSubIFDDirectory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getDateDigitized()
Parses the date/time tag and the subsecond tag to obtain a single Date object with milliseconds representing the date and time when this image was digitized.Date
getDateDigitized(TimeZone timeZone)
Parses the date/time tag and the subsecond tag to obtain a single Date object with milliseconds representing the date and time when this image was digitized.Date
getDateOriginal()
Parses the date/time tag and the subsecond tag to obtain a single Date object with milliseconds representing the date and time when this image was captured.Date
getDateOriginal(TimeZone timeZone)
Parses the date/time tag and the subsecond tag to obtain a single Date object with milliseconds representing the date and time when this image was captured.String
getName()
Provides the name of the directory, for display purposes.-
Methods inherited from class com.drew.metadata.Directory
addError, containsTag, getBoolean, getBooleanObject, getByteArray, getDate, getDate, getDate, getDescription, getDouble, getDoubleObject, getErrorCount, getErrors, getFloat, getFloatObject, getInt, getIntArray, getInteger, getLong, getLongObject, getObject, getParent, getRational, getRationalArray, getString, getString, getStringArray, getStringValue, getStringValueArray, getTagCount, getTagName, getTags, hasErrors, hasTagName, isEmpty, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setDoubleArray, setFloat, setFloatArray, setInt, setIntArray, setLong, setObject, setObjectArray, setParent, setRational, setRationalArray, setString, setStringArray, setStringValue, setStringValueArray, toString
-
-
-
-
Field Detail
-
TAG_INTEROP_OFFSET
public static final int TAG_INTEROP_OFFSET
This tag is a pointer to the Exif Interop IFD.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Description copied from class:Directory
Provides the name of the directory, for display purposes. E.g.Exif
-
getDateOriginal
public Date getDateOriginal()
Parses the date/time tag and the subsecond tag to obtain a single Date object with milliseconds representing the date and time when this image was captured. Attempts will be made to parse the values as though it is in the GMTTimeZone
.- Returns:
- A Date object representing when this image was captured, if possible, otherwise null
-
getDateOriginal
public Date getDateOriginal(TimeZone timeZone)
Parses the date/time tag and the subsecond tag to obtain a single Date object with milliseconds representing the date and time when this image was captured. Attempts will be made to parse the values as though it is in theTimeZone
represented by thetimeZone
parameter (if it is non-null).- Parameters:
timeZone
- the time zone to use- Returns:
- A Date object representing when this image was captured, if possible, otherwise null
-
getDateDigitized
public Date getDateDigitized()
Parses the date/time tag and the subsecond tag to obtain a single Date object with milliseconds representing the date and time when this image was digitized. Attempts will be made to parse the values as though it is in the GMTTimeZone
.- Returns:
- A Date object representing when this image was digitized, if possible, otherwise null
-
getDateDigitized
public Date getDateDigitized(TimeZone timeZone)
Parses the date/time tag and the subsecond tag to obtain a single Date object with milliseconds representing the date and time when this image was digitized. Attempts will be made to parse the values as though it is in theTimeZone
represented by thetimeZone
parameter (if it is non-null).- Parameters:
timeZone
- the time zone to use- Returns:
- A Date object representing when this image was digitized, if possible, otherwise null
-
-