Package gov.nih.mipav.model.file
Class MetadataExtractor.IptcDirectory
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.Directory
-
- gov.nih.mipav.model.file.MetadataExtractor.IptcDirectory
-
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.IptcDirectory extends MetadataExtractor.Directory
Describes tags used by the International Press Telecommunications Council (IPTC) metadata format.- Author:
- Drew Noakes https://drewnoakes.com
-
-
Field Summary
-
Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.Directory
_definedTagList, _descriptor, _tagMap
-
-
Constructor Summary
Constructors Constructor Description IptcDirectory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Date
getDate(int dateTagType, int timeTagType)
java.util.Date
getDateCreated()
Parses the Date Created tag and the Time Created tag to obtain a single Date object representing the date and time when this image was captured.java.util.Date
getDateSent()
Parses the Date Sent tag and the Time Sent tag to obtain a single Date object representing the date and time when the service sent this image.java.util.Date
getDigitalDateCreated()
Parses the Digital Date Created tag and the Digital Time Created tag to obtain a single Date object representing the date and time when the digital representation of this image was created.java.util.Date
getExpirationDate()
Parses the Expiration Date tag and the Expiration Time tag to obtain a single Date object representing that this image should not used after this date and time.java.util.List<java.lang.String>
getKeywords()
Returns any keywords contained in the IPTC data.java.lang.String
getName()
Provides the name of the directory, for display purposes.java.util.Date
getReleaseDate()
Parses the Release Date tag and the Release Time tag to obtain a single Date object representing the date and time when this image was released.protected java.util.HashMap<java.lang.Integer,java.lang.String>
getTagNameMap()
Provides the map of tag names, hashed by tag type identifier.-
Methods inherited from class gov.nih.mipav.model.file.MetadataExtractor.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_ENVELOPE_RECORD_VERSION
public static final int TAG_ENVELOPE_RECORD_VERSION
- See Also:
- Constant Field Values
-
TAG_DESTINATION
public static final int TAG_DESTINATION
- See Also:
- Constant Field Values
-
TAG_FILE_FORMAT
public static final int TAG_FILE_FORMAT
- See Also:
- Constant Field Values
-
TAG_FILE_VERSION
public static final int TAG_FILE_VERSION
- See Also:
- Constant Field Values
-
TAG_SERVICE_ID
public static final int TAG_SERVICE_ID
- See Also:
- Constant Field Values
-
TAG_ENVELOPE_NUMBER
public static final int TAG_ENVELOPE_NUMBER
- See Also:
- Constant Field Values
-
TAG_PRODUCT_ID
public static final int TAG_PRODUCT_ID
- See Also:
- Constant Field Values
-
TAG_ENVELOPE_PRIORITY
public static final int TAG_ENVELOPE_PRIORITY
- See Also:
- Constant Field Values
-
TAG_DATE_SENT
public static final int TAG_DATE_SENT
- See Also:
- Constant Field Values
-
TAG_TIME_SENT
public static final int TAG_TIME_SENT
- See Also:
- Constant Field Values
-
TAG_CODED_CHARACTER_SET
public static final int TAG_CODED_CHARACTER_SET
- See Also:
- Constant Field Values
-
TAG_UNIQUE_OBJECT_NAME
public static final int TAG_UNIQUE_OBJECT_NAME
- See Also:
- Constant Field Values
-
TAG_ARM_IDENTIFIER
public static final int TAG_ARM_IDENTIFIER
- See Also:
- Constant Field Values
-
TAG_ARM_VERSION
public static final int TAG_ARM_VERSION
- See Also:
- Constant Field Values
-
TAG_APPLICATION_RECORD_VERSION
public static final int TAG_APPLICATION_RECORD_VERSION
- See Also:
- Constant Field Values
-
TAG_OBJECT_TYPE_REFERENCE
public static final int TAG_OBJECT_TYPE_REFERENCE
- See Also:
- Constant Field Values
-
TAG_OBJECT_ATTRIBUTE_REFERENCE
public static final int TAG_OBJECT_ATTRIBUTE_REFERENCE
- See Also:
- Constant Field Values
-
TAG_OBJECT_NAME
public static final int TAG_OBJECT_NAME
- See Also:
- Constant Field Values
-
TAG_EDIT_STATUS
public static final int TAG_EDIT_STATUS
- See Also:
- Constant Field Values
-
TAG_EDITORIAL_UPDATE
public static final int TAG_EDITORIAL_UPDATE
- See Also:
- Constant Field Values
-
TAG_URGENCY
public static final int TAG_URGENCY
- See Also:
- Constant Field Values
-
TAG_SUBJECT_REFERENCE
public static final int TAG_SUBJECT_REFERENCE
- See Also:
- Constant Field Values
-
TAG_CATEGORY
public static final int TAG_CATEGORY
- See Also:
- Constant Field Values
-
TAG_SUPPLEMENTAL_CATEGORIES
public static final int TAG_SUPPLEMENTAL_CATEGORIES
- See Also:
- Constant Field Values
-
TAG_FIXTURE_ID
public static final int TAG_FIXTURE_ID
- See Also:
- Constant Field Values
-
TAG_KEYWORDS
public static final int TAG_KEYWORDS
- See Also:
- Constant Field Values
-
TAG_CONTENT_LOCATION_CODE
public static final int TAG_CONTENT_LOCATION_CODE
- See Also:
- Constant Field Values
-
TAG_CONTENT_LOCATION_NAME
public static final int TAG_CONTENT_LOCATION_NAME
- See Also:
- Constant Field Values
-
TAG_RELEASE_DATE
public static final int TAG_RELEASE_DATE
- See Also:
- Constant Field Values
-
TAG_RELEASE_TIME
public static final int TAG_RELEASE_TIME
- See Also:
- Constant Field Values
-
TAG_EXPIRATION_DATE
public static final int TAG_EXPIRATION_DATE
- See Also:
- Constant Field Values
-
TAG_EXPIRATION_TIME
public static final int TAG_EXPIRATION_TIME
- See Also:
- Constant Field Values
-
TAG_SPECIAL_INSTRUCTIONS
public static final int TAG_SPECIAL_INSTRUCTIONS
- See Also:
- Constant Field Values
-
TAG_ACTION_ADVISED
public static final int TAG_ACTION_ADVISED
- See Also:
- Constant Field Values
-
TAG_REFERENCE_SERVICE
public static final int TAG_REFERENCE_SERVICE
- See Also:
- Constant Field Values
-
TAG_REFERENCE_DATE
public static final int TAG_REFERENCE_DATE
- See Also:
- Constant Field Values
-
TAG_REFERENCE_NUMBER
public static final int TAG_REFERENCE_NUMBER
- See Also:
- Constant Field Values
-
TAG_DATE_CREATED
public static final int TAG_DATE_CREATED
- See Also:
- Constant Field Values
-
TAG_TIME_CREATED
public static final int TAG_TIME_CREATED
- See Also:
- Constant Field Values
-
TAG_DIGITAL_DATE_CREATED
public static final int TAG_DIGITAL_DATE_CREATED
- See Also:
- Constant Field Values
-
TAG_DIGITAL_TIME_CREATED
public static final int TAG_DIGITAL_TIME_CREATED
- See Also:
- Constant Field Values
-
TAG_ORIGINATING_PROGRAM
public static final int TAG_ORIGINATING_PROGRAM
- See Also:
- Constant Field Values
-
TAG_PROGRAM_VERSION
public static final int TAG_PROGRAM_VERSION
- See Also:
- Constant Field Values
-
TAG_OBJECT_CYCLE
public static final int TAG_OBJECT_CYCLE
- See Also:
- Constant Field Values
-
TAG_BY_LINE
public static final int TAG_BY_LINE
- See Also:
- Constant Field Values
-
TAG_BY_LINE_TITLE
public static final int TAG_BY_LINE_TITLE
- See Also:
- Constant Field Values
-
TAG_CITY
public static final int TAG_CITY
- See Also:
- Constant Field Values
-
TAG_SUB_LOCATION
public static final int TAG_SUB_LOCATION
- See Also:
- Constant Field Values
-
TAG_PROVINCE_OR_STATE
public static final int TAG_PROVINCE_OR_STATE
- See Also:
- Constant Field Values
-
TAG_COUNTRY_OR_PRIMARY_LOCATION_CODE
public static final int TAG_COUNTRY_OR_PRIMARY_LOCATION_CODE
- See Also:
- Constant Field Values
-
TAG_COUNTRY_OR_PRIMARY_LOCATION_NAME
public static final int TAG_COUNTRY_OR_PRIMARY_LOCATION_NAME
- See Also:
- Constant Field Values
-
TAG_ORIGINAL_TRANSMISSION_REFERENCE
public static final int TAG_ORIGINAL_TRANSMISSION_REFERENCE
- See Also:
- Constant Field Values
-
TAG_HEADLINE
public static final int TAG_HEADLINE
- See Also:
- Constant Field Values
-
TAG_CREDIT
public static final int TAG_CREDIT
- See Also:
- Constant Field Values
-
TAG_SOURCE
public static final int TAG_SOURCE
- See Also:
- Constant Field Values
-
TAG_COPYRIGHT_NOTICE
public static final int TAG_COPYRIGHT_NOTICE
- See Also:
- Constant Field Values
-
TAG_CONTACT
public static final int TAG_CONTACT
- See Also:
- Constant Field Values
-
TAG_CAPTION
public static final int TAG_CAPTION
- See Also:
- Constant Field Values
-
TAG_LOCAL_CAPTION
public static final int TAG_LOCAL_CAPTION
- See Also:
- Constant Field Values
-
TAG_CAPTION_WRITER
public static final int TAG_CAPTION_WRITER
- See Also:
- Constant Field Values
-
TAG_RASTERIZED_CAPTION
public static final int TAG_RASTERIZED_CAPTION
- See Also:
- Constant Field Values
-
TAG_IMAGE_TYPE
public static final int TAG_IMAGE_TYPE
- See Also:
- Constant Field Values
-
TAG_IMAGE_ORIENTATION
public static final int TAG_IMAGE_ORIENTATION
- See Also:
- Constant Field Values
-
TAG_LANGUAGE_IDENTIFIER
public static final int TAG_LANGUAGE_IDENTIFIER
- See Also:
- Constant Field Values
-
TAG_AUDIO_TYPE
public static final int TAG_AUDIO_TYPE
- See Also:
- Constant Field Values
-
TAG_AUDIO_SAMPLING_RATE
public static final int TAG_AUDIO_SAMPLING_RATE
- See Also:
- Constant Field Values
-
TAG_AUDIO_SAMPLING_RESOLUTION
public static final int TAG_AUDIO_SAMPLING_RESOLUTION
- See Also:
- Constant Field Values
-
TAG_AUDIO_DURATION
public static final int TAG_AUDIO_DURATION
- See Also:
- Constant Field Values
-
TAG_AUDIO_OUTCUE
public static final int TAG_AUDIO_OUTCUE
- See Also:
- Constant Field Values
-
TAG_JOB_ID
public static final int TAG_JOB_ID
- See Also:
- Constant Field Values
-
TAG_MASTER_DOCUMENT_ID
public static final int TAG_MASTER_DOCUMENT_ID
- See Also:
- Constant Field Values
-
TAG_SHORT_DOCUMENT_ID
public static final int TAG_SHORT_DOCUMENT_ID
- See Also:
- Constant Field Values
-
TAG_UNIQUE_DOCUMENT_ID
public static final int TAG_UNIQUE_DOCUMENT_ID
- See Also:
- Constant Field Values
-
TAG_OWNER_ID
public static final int TAG_OWNER_ID
- See Also:
- Constant Field Values
-
TAG_OBJECT_PREVIEW_FILE_FORMAT
public static final int TAG_OBJECT_PREVIEW_FILE_FORMAT
- See Also:
- Constant Field Values
-
TAG_OBJECT_PREVIEW_FILE_FORMAT_VERSION
public static final int TAG_OBJECT_PREVIEW_FILE_FORMAT_VERSION
- See Also:
- Constant Field Values
-
TAG_OBJECT_PREVIEW_DATA
public static final int TAG_OBJECT_PREVIEW_DATA
- See Also:
- Constant Field Values
-
_tagNameMap
private final java.util.HashMap<java.lang.Integer,java.lang.String> _tagNameMap
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:MetadataExtractor.Directory
Provides the name of the directory, for display purposes. E.g.Exif
- Specified by:
getName
in classMetadataExtractor.Directory
- Returns:
- the name of the directory
-
getTagNameMap
protected java.util.HashMap<java.lang.Integer,java.lang.String> getTagNameMap()
Description copied from class:MetadataExtractor.Directory
Provides the map of tag names, hashed by tag type identifier.- Specified by:
getTagNameMap
in classMetadataExtractor.Directory
- Returns:
- the map of tag names
-
getKeywords
public java.util.List<java.lang.String> getKeywords()
Returns any keywords contained in the IPTC data. This value may benull
.
-
getDateSent
public java.util.Date getDateSent()
Parses the Date Sent tag and the Time Sent tag to obtain a single Date object representing the date and time when the service sent this image.- Returns:
- A Date object representing when the service sent this image, if possible, otherwise null
-
getReleaseDate
public java.util.Date getReleaseDate()
Parses the Release Date tag and the Release Time tag to obtain a single Date object representing the date and time when this image was released.- Returns:
- A Date object representing when this image was released, if possible, otherwise null
-
getExpirationDate
public java.util.Date getExpirationDate()
Parses the Expiration Date tag and the Expiration Time tag to obtain a single Date object representing that this image should not used after this date and time.- Returns:
- A Date object representing when this image was released, if possible, otherwise null
-
getDateCreated
public java.util.Date getDateCreated()
Parses the Date Created tag and the Time Created tag to obtain a single Date object representing the date and time when this image was captured.- Returns:
- A Date object representing when this image was captured, if possible, otherwise null
-
getDigitalDateCreated
public java.util.Date getDigitalDateCreated()
Parses the Digital Date Created tag and the Digital Time Created tag to obtain a single Date object representing the date and time when the digital representation of this image was created.- Returns:
- A Date object representing when the digital representation of this image was created, if possible, otherwise null
-
getDate
private java.util.Date getDate(int dateTagType, int timeTagType)
-
-