Class JempboxExtractor


  • public class JempboxExtractor
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void extractDublinCore​(org.apache.jempbox.xmp.XMPMetadata xmpMetadata, Metadata metadata)
      Tries to extract Dublin Core schema from XMP.
      static void extractXMPMM​(org.apache.jempbox.xmp.XMPMetadata xmp, Metadata metadata)
      Extracts Media Management metadata from XMP.
      static int getMaxXMPMMHistory()  
      void parse​(java.io.InputStream file)  
      static void setMaxXMPMMHistory​(int maxEvents)
      Maximum number of events to extract from the event history in the XMP Media Management (XMPMM) section.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JempboxExtractor

        public JempboxExtractor​(Metadata metadata)
    • Method Detail

      • parse

        public void parse​(java.io.InputStream file)
                   throws java.io.IOException,
                          TikaException
        Throws:
        java.io.IOException
        TikaException
      • extractDublinCore

        public static void extractDublinCore​(org.apache.jempbox.xmp.XMPMetadata xmpMetadata,
                                             Metadata metadata)
        Tries to extract Dublin Core schema from XMP. If XMPMetadata is null or if the DC schema is null, this will return without throwing an exception.
        Parameters:
        xmpMetadata - XMPMetadata to process
        metadata - Tika's metadata to write to
      • extractXMPMM

        public static void extractXMPMM​(org.apache.jempbox.xmp.XMPMetadata xmp,
                                        Metadata metadata)
        Extracts Media Management metadata from XMP. Silently swallows exceptions.
        Parameters:
        xmp -
        metadata -
      • setMaxXMPMMHistory

        public static void setMaxXMPMMHistory​(int maxEvents)
        Maximum number of events to extract from the event history in the XMP Media Management (XMPMM) section. The extractor will silently stop adding events after it has reached this threshold.

        The default is 1024.

      • getMaxXMPMMHistory

        public static int getMaxXMPMMHistory()
        Returns:
        maximum number of events to extract from the XMPMM history.