com.drew.metadata.iptc
Class IptcDirectory

java.lang.Object
  extended by com.drew.metadata.Directory
      extended by com.drew.metadata.iptc.IptcDirectory

public class IptcDirectory
extends Directory

Describes tags used by the International Press Telecommunications Council (IPTC) metadata format.

Author:
Drew Noakes http://drewnoakes.com

Field Summary
protected static HashMap<Integer,String> _tagNameMap
           
static int TAG_ACTION_ADVISED
           
static int TAG_APPLICATION_RECORD_VERSION
           
static int TAG_ARM_IDENTIFIER
           
static int TAG_ARM_VERSION
           
static int TAG_AUDIO_DURATION
           
static int TAG_AUDIO_OUTCUE
           
static int TAG_AUDIO_SAMPLING_RATE
           
static int TAG_AUDIO_SAMPLING_RESOLUTION
           
static int TAG_AUDIO_TYPE
           
static int TAG_BY_LINE
           
static int TAG_BY_LINE_TITLE
           
static int TAG_CAPTION
           
static int TAG_CAPTION_WRITER
           
static int TAG_CATEGORY
           
static int TAG_CITY
           
static int TAG_CODED_CHARACTER_SET
           
static int TAG_CONTACT
           
static int TAG_CONTENT_LOCATION_CODE
           
static int TAG_CONTENT_LOCATION_NAME
           
static int TAG_COPYRIGHT_NOTICE
           
static int TAG_COUNTRY_OR_PRIMARY_LOCATION_CODE
           
static int TAG_COUNTRY_OR_PRIMARY_LOCATION_NAME
           
static int TAG_CREDIT
           
static int TAG_DATE_CREATED
           
static int TAG_DATE_SENT
           
static int TAG_DESTINATION
           
static int TAG_DIGITAL_DATE_CREATED
           
static int TAG_DIGITAL_TIME_CREATED
           
static int TAG_EDIT_STATUS
           
static int TAG_EDITORIAL_UPDATE
           
static int TAG_ENVELOPE_NUMBER
           
static int TAG_ENVELOPE_PRIORITY
           
static int TAG_ENVELOPE_RECORD_VERSION
           
static int TAG_EXPIRATION_DATE
           
static int TAG_EXPIRATION_TIME
           
static int TAG_FILE_FORMAT
           
static int TAG_FILE_VERSION
           
static int TAG_FIXTURE_ID
           
static int TAG_HEADLINE
           
static int TAG_IMAGE_ORIENTATION
           
static int TAG_IMAGE_TYPE
           
static int TAG_JOB_ID
           
static int TAG_KEYWORDS
           
static int TAG_LANGUAGE_IDENTIFIER
           
static int TAG_LOCAL_CAPTION
           
static int TAG_MASTER_DOCUMENT_ID
           
static int TAG_OBJECT_ATTRIBUTE_REFERENCE
           
static int TAG_OBJECT_CYCLE
           
static int TAG_OBJECT_NAME
           
static int TAG_OBJECT_PREVIEW_DATA
           
static int TAG_OBJECT_PREVIEW_FILE_FORMAT
           
static int TAG_OBJECT_PREVIEW_FILE_FORMAT_VERSION
           
static int TAG_OBJECT_TYPE_REFERENCE
           
static int TAG_ORIGINAL_TRANSMISSION_REFERENCE
           
static int TAG_ORIGINATING_PROGRAM
           
static int TAG_OWNER_ID
           
static int TAG_PRODUCT_ID
           
static int TAG_PROGRAM_VERSION
           
static int TAG_PROVINCE_OR_STATE
           
static int TAG_RASTERIZED_CAPTION
           
static int TAG_REFERENCE_DATE
           
static int TAG_REFERENCE_NUMBER
           
static int TAG_REFERENCE_SERVICE
           
static int TAG_RELEASE_DATE
           
static int TAG_RELEASE_TIME
           
static int TAG_SERVICE_ID
           
static int TAG_SHORT_DOCUMENT_ID
           
static int TAG_SOURCE
           
static int TAG_SPECIAL_INSTRUCTIONS
           
static int TAG_SUB_LOCATION
           
static int TAG_SUBJECT_REFERENCE
           
static int TAG_SUPPLEMENTAL_CATEGORIES
           
static int TAG_TIME_CREATED
           
static int TAG_TIME_SENT
           
static int TAG_UNIQUE_DOCUMENT_ID
           
static int TAG_UNIQUE_OBJECT_NAME
           
static int TAG_URGENCY
           
 
Fields inherited from class com.drew.metadata.Directory
_definedTagList, _descriptor, _tagMap
 
Constructor Summary
IptcDirectory()
           
 
Method Summary
 List<String> getKeywords()
          Returns any keywords contained in the IPTC data.
 String getName()
          Provides the name of the directory, for display purposes.
protected  HashMap<Integer,String> getTagNameMap()
          Provides the map of tag names, hashed by tag type identifier.
 
Methods inherited from class com.drew.metadata.Directory
addError, containsTag, getBoolean, getBooleanObject, getByteArray, getDate, getDate, getDescription, getDouble, getDoubleObject, getErrorCount, getErrors, getFloat, getFloatObject, getInt, getIntArray, getInteger, getLong, getLongObject, getObject, getRational, getRationalArray, getString, getString, getStringArray, getTagCount, getTagName, getTags, hasErrors, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setDoubleArray, setFloat, setFloatArray, setInt, setIntArray, setLong, setObject, setObjectArray, setRational, setRationalArray, setString, setStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

protected static final HashMap<Integer,String> _tagNameMap
Constructor Detail

IptcDirectory

public IptcDirectory()
Method Detail

getName

public String getName()
Description copied from class: Directory
Provides the name of the directory, for display purposes. E.g. Exif

Specified by:
getName in class Directory
Returns:
the name of the directory

getTagNameMap

protected HashMap<Integer,String> getTagNameMap()
Description copied from class: Directory
Provides the map of tag names, hashed by tag type identifier.

Specified by:
getTagNameMap in class Directory
Returns:
the map of tag names

getKeywords

public List<String> getKeywords()
Returns any keywords contained in the IPTC data. This value may be null.



Copyright © 2012. All Rights Reserved.