Package com.drew.metadata.xmp
Class XmpDirectory
java.lang.Object
com.drew.metadata.Directory
com.drew.metadata.xmp.XmpDirectory
Wraps an instance of Adobe's
XMPMeta object, which holds XMP data.
XMP uses a namespace and path format for identifying values, which does not map to metadata-extractor's
integer based tag identifiers. Therefore, XMP data is extracted and exposed via getXMPMeta()
which returns an instance of Adobe's XMPMeta which exposes the full XMP data set.- Author:
- Torsten Skadell, Drew Noakes https://drewnoakes.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Provides the name of the directory, for display purposes.com.adobe.internal.xmp.XMPMetaGets the XMPMeta object used to populate this directory.Gets a map of all XMP properties in this directory.voidsetXMPMeta(com.adobe.internal.xmp.XMPMeta xmpMeta) 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 Details
-
TAG_XMP_VALUE_COUNT
public static final int TAG_XMP_VALUE_COUNT- See Also:
-
-
Constructor Details
-
XmpDirectory
public XmpDirectory()
-
-
Method Details
-
getName
Description copied from class:DirectoryProvides the name of the directory, for display purposes. E.g.Exif -
getXmpProperties
Gets a map of all XMP properties in this directory.This is required because XMP properties are represented as strings, whereas the rest of this library uses integers for keys.
-
setXMPMeta
public void setXMPMeta(com.adobe.internal.xmp.XMPMeta xmpMeta) -
getXMPMeta
public com.adobe.internal.xmp.XMPMeta getXMPMeta()Gets the XMPMeta object used to populate this directory. It can be used for more XMP-oriented operations. If one does not exist it will be created.
-