Class XMPMetadataExtractor


  • public class XMPMetadataExtractor
    extends Object
    XMP Metadata Extractor based on Apache XmpBox.
    • Constructor Detail

      • XMPMetadataExtractor

        public XMPMetadataExtractor()
    • Method Detail

      • parse

        public static void parse​(InputStream stream,
                                 org.apache.tika.metadata.Metadata metadata)
                          throws IOException,
                                 org.apache.tika.exception.TikaException
        Parse the XMP Packets.
        Parameters:
        stream - the stream to parser.
        metadata - the metadata collection to update
        Throws:
        IOException - on any IO error.
        org.apache.tika.exception.TikaException - on any Tika error.
      • extractDublinCoreSchema

        public static void extractDublinCoreSchema​(org.apache.xmpbox.XMPMetadata xmp,
                                                   org.apache.tika.metadata.Metadata metadata)
                                            throws IOException
        Extracts Dublin Core. Silently swallows exceptions.
        Parameters:
        xmp - the XMP Metadata object.
        metadata - the metadata map
        Throws:
        IOException
      • extractXMPBasicSchema

        public static void extractXMPBasicSchema​(org.apache.xmpbox.XMPMetadata xmp,
                                                 org.apache.tika.metadata.Metadata metadata)
                                          throws IOException
        Extracts basic schema metadata from XMP. Silently swallows exceptions.
        Parameters:
        xmp - the XMP Metadata object.
        metadata - the metadata map
        Throws:
        IOException