Class XmpDirectory

java.lang.Object
com.drew.metadata.Directory
com.drew.metadata.xmp.XmpDirectory

public class XmpDirectory extends Directory
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 Details

  • Constructor Details

    • XmpDirectory

      public XmpDirectory()
  • Method Details

    • 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
    • getXmpProperties

      public Map<String,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(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.