public class JempboxExtractor extends Object
Constructor and Description |
---|
JempboxExtractor(Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
static void |
extractDublinCore(org.apache.jempbox.xmp.XMPMetadata xmpMetadata,
Metadata metadata)
Tries to extract Dublin Core schema from XMP.
|
static void |
extractXMPMM(org.apache.jempbox.xmp.XMPMetadata xmp,
Metadata metadata)
Extracts Media Management metadata from XMP.
|
static int |
getMaxXMPMMHistory() |
protected static String |
joinCreators(List<String> creators) |
void |
parse(InputStream file) |
static void |
setMaxXMPMMHistory(int maxEvents)
Maximum number of events to extract from the
event history in the XMP Media Management (XMPMM) section.
|
public JempboxExtractor(Metadata metadata)
public static void extractDublinCore(org.apache.jempbox.xmp.XMPMetadata xmpMetadata, Metadata metadata)
xmpMetadata
- XMPMetadata to processmetadata
- Tika's metadata to write topublic static void extractXMPMM(org.apache.jempbox.xmp.XMPMetadata xmp, Metadata metadata)
Silently swallows exceptions.
xmp
- metadata
- public static int getMaxXMPMMHistory()
public static void setMaxXMPMMHistory(int maxEvents)
The default is 1024.
public void parse(InputStream file) throws IOException, TikaException
IOException
TikaException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.