org.apache.tika.xmp.convert
Class OpenDocumentConverter

java.lang.Object
  extended by org.apache.tika.xmp.convert.AbstractConverter
      extended by 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 Summary
protected static Set<Namespace> ADDITIONAL_NAMESPACES
           
 
Fields inherited from class org.apache.tika.xmp.convert.AbstractConverter
meta
 
Constructor Summary
OpenDocumentConverter()
           
 
Method Summary
protected  Set<Namespace> getAdditionalNamespaces()
          Every Converter has to provide information about namespaces that are used additionally to the core set of XMP namespaces.
 com.adobe.xmp.XMPMeta process(Metadata metadata)
          Converts a Tika Metadata-object into an XMPMeta containing the useful properties.
 
Methods inherited from class org.apache.tika.xmp.convert.AbstractConverter
createArrayProperty, createArrayProperty, createCommaSeparatedArray, createCommaSeparatedArray, createLangAltProperty, createLangAltProperty, createProperty, createProperty, getXMPMeta, registerNamespaces, setMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADDITIONAL_NAMESPACES

protected static final Set<Namespace> ADDITIONAL_NAMESPACES
Constructor Detail

OpenDocumentConverter

public OpenDocumentConverter()
                      throws TikaException
Throws:
TikaException
Method Detail

process

public com.adobe.xmp.XMPMeta process(Metadata metadata)
                              throws com.adobe.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.xmp.XMPException - Forwards XMP errors
See Also:
ITikaToXMPConverter.process(Metadata)

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


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.