Package org.apache.tika.xmp.convert
Class MSOfficeXMLConverter
- java.lang.Object
-
- org.apache.tika.xmp.convert.AbstractConverter
-
- org.apache.tika.xmp.convert.MSOfficeXMLConverter
-
- All Implemented Interfaces:
ITikaToXMPConverter
public class MSOfficeXMLConverter extends AbstractConverter
Tika to XMP mapping for the Office Open XML formats Word (.docx), Excel (.xlsx) and PowerPoint (.pptx).
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set<Namespace>
ADDITIONAL_NAMESPACES
-
Fields inherited from class org.apache.tika.xmp.convert.AbstractConverter
meta
-
-
Constructor Summary
Constructors Constructor Description MSOfficeXMLConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 TikaMetadata
-object into anXMPMeta
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
-
-
-
-
Constructor Detail
-
MSOfficeXMLConverter
public MSOfficeXMLConverter() 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 TikaMetadata
-object into anXMPMeta
containing the useful properties.- Specified by:
process
in interfaceITikaToXMPConverter
- Specified by:
process
in classAbstractConverter
- Parameters:
metadata
- a Tika Metadata object- Returns:
- Returns an XMPMeta object.
- Throws:
com.adobe.xmp.XMPException
- If an error occurs during the creation of the XMP object.
-
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 classAbstractConverter
- Returns:
- the additional namespace information
-
-