org.apache.tika.xmp.convert
Class TikaToXMP
java.lang.Object
org.apache.tika.xmp.convert.TikaToXMP
public class TikaToXMP
- extends Object
|
Method Summary |
static com.adobe.xmp.XMPMeta |
convert(org.apache.tika.metadata.Metadata tikaMetadata)
|
static com.adobe.xmp.XMPMeta |
convert(org.apache.tika.metadata.Metadata tikaMetadata,
String mimetype)
Convert the given Tika metadata map to XMP object. |
static ITikaToXMPConverter |
getConverter(String mimetype)
Retrieve a specific converter according to the mimetype |
static boolean |
isConverterAvailable(String mimetype)
Check if there is a converter available which allows to convert the Tika metadata to XMP |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TikaToXMP
public TikaToXMP()
convert
public static com.adobe.xmp.XMPMeta convert(org.apache.tika.metadata.Metadata tikaMetadata)
throws org.apache.tika.exception.TikaException
- Throws:
org.apache.tika.exception.TikaException- See Also:
But the mimetype is retrieved from the metadata
map.
convert
public static com.adobe.xmp.XMPMeta convert(org.apache.tika.metadata.Metadata tikaMetadata,
String mimetype)
throws org.apache.tika.exception.TikaException
- Convert the given Tika metadata map to XMP object. If a mimetype is provided in the Metadata
map, a specific converter can be used, that converts all available metadata. If there is no
mimetype provided or no specific converter available a generic conversion is done which will
convert only those properties that are in known namespaces and are using the correct
prefixes.
- Parameters:
tikaMetadata - the Metadata map from Tikamimetype - depicts the format's converter to use
- Returns:
- XMP object
- Throws:
org.apache.tika.exception.TikaException
isConverterAvailable
public static boolean isConverterAvailable(String mimetype)
- Check if there is a converter available which allows to convert the Tika metadata to XMP
- Parameters:
mimetype - the Mimetype
- Returns:
- true if the Metadata object can be converted or false if not
getConverter
public static ITikaToXMPConverter getConverter(String mimetype)
throws org.apache.tika.exception.TikaException
- Retrieve a specific converter according to the mimetype
- Parameters:
mimetype - the Mimetype
- Returns:
- the converter or null, if none exists
- Throws:
org.apache.tika.exception.TikaException
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.