Package com.drew.metadata.xmp
Class XmpDirectory
- java.lang.Object
-
- com.drew.metadata.Directory
-
- com.drew.metadata.xmp.XmpDirectory
-
public class XmpDirectory extends Directory
Wraps an instance of Adobe'sXMPMetaobject, 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 viagetXMPMeta()which returns an instance of Adobe'sXMPMetawhich exposes the full XMP data set.
-
-
Field Summary
Fields Modifier and Type Field Description static intTAG_XMP_VALUE_COUNT
-
Constructor Summary
Constructors Constructor Description XmpDirectory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Provides the name of the directory, for display purposes.XMPMetagetXMPMeta()Gets the XMPMeta object used to populate this directory.java.util.Map<java.lang.String,java.lang.String>getXmpProperties()Gets a map of all XMP properties in this directory.voidsetXMPMeta(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 Detail
-
TAG_XMP_VALUE_COUNT
public static final int TAG_XMP_VALUE_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:DirectoryProvides the name of the directory, for display purposes. E.g.Exif
-
getXmpProperties
public java.util.Map<java.lang.String,java.lang.String> 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(XMPMeta xmpMeta)
-
getXMPMeta
public 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.
-
-