Class OpenDocumentConverter

java.lang.Object
org.apache.tika.xmp.convert.AbstractConverter
org.apache.tika.xmp.convert.OpenDocumentConverter
All Implemented Interfaces:
ITikaToXMPConverter

public class OpenDocumentConverter extends AbstractConverter
Tika to XMP mapping for the Open Document formats: Text (.odt), Spreatsheet (.ods), Graphics (.odg) and Presentation (.odp).
  • Field Details

    • ADDITIONAL_NAMESPACES

      protected static final Set<Namespace> ADDITIONAL_NAMESPACES
  • Constructor Details

    • OpenDocumentConverter

      public OpenDocumentConverter() throws org.apache.tika.exception.TikaException
      Throws:
      org.apache.tika.exception.TikaException
  • Method Details

    • process

      public com.adobe.internal.xmp.XMPMeta process(org.apache.tika.metadata.Metadata metadata) throws com.adobe.internal.xmp.XMPException
      Description copied from interface: ITikaToXMPConverter
      Converts a Tika Metadata-object into an XMPMeta containing the useful properties.
      Specified by:
      process in interface ITikaToXMPConverter
      Specified by:
      process in class AbstractConverter
      Parameters:
      metadata - a Tika Metadata object
      Returns:
      Returns an XMPMeta object.
      Throws:
      com.adobe.internal.xmp.XMPException - Forwards XMP errors
      See Also:
    • getAdditionalNamespaces

      protected Set<Namespace> getAdditionalNamespaces()
      Description copied from class: AbstractConverter
      Every Converter has to provide information about namespaces that are used additionally to the core set of XMP namespaces.
      Specified by:
      getAdditionalNamespaces in class AbstractConverter
      Returns:
      the additional namespace information