Package org.apache.tika.parser.xmp
Class XMPMetadataExtractor
java.lang.Object
org.apache.tika.parser.xmp.XMPMetadataExtractor
XMP Metadata Extractor based on Apache XmpBox.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
extractDublinCoreSchema
(org.apache.xmpbox.XMPMetadata xmp, Metadata metadata) Extracts Dublin Core.static void
extractXMPBasicSchema
(org.apache.xmpbox.XMPMetadata xmp, Metadata metadata) Extracts basic schema metadata from XMP.static void
parse
(InputStream stream, Metadata metadata) Parse the XMP Packets.
-
Constructor Details
-
XMPMetadataExtractor
public XMPMetadataExtractor()
-
-
Method Details
-
parse
Parse the XMP Packets.- Parameters:
stream
- the stream to parser.metadata
- the metadata collection to update- Throws:
IOException
- on any IO error.TikaException
- on any Tika error.
-
extractDublinCoreSchema
public static void extractDublinCoreSchema(org.apache.xmpbox.XMPMetadata xmp, Metadata metadata) throws IOException Extracts Dublin Core. Silently swallows exceptions.- Parameters:
xmp
- the XMP Metadata object.metadata
- the metadata map- Throws:
IOException
-
extractXMPBasicSchema
public static void extractXMPBasicSchema(org.apache.xmpbox.XMPMetadata xmp, Metadata metadata) throws IOException Extracts basic schema metadata from XMP. Silently swallows exceptions.- Parameters:
xmp
- the XMP Metadata object.metadata
- the metadata map- Throws:
IOException
-