Class 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.

    • Constructor Detail

      • XmpDirectory

        public XmpDirectory()
    • Method Detail

      • getName

        public java.lang.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 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.