Package org.nuxeo.binary.metadata.api
Interface BinaryMetadataProcessor
- All Known Implementing Classes:
ExifToolProcessor
public interface BinaryMetadataProcessor
Class to extends to contribute processor runner. See extension point 'metadataProcessors'.
- Since:
- 7.1
-
Method Summary
Modifier and TypeMethodDescriptionreadMetadata
(Blob blob, boolean ignorePrefix) Read all metadata from a given blob.readMetadata
(Blob blob, List<String> metadata, boolean ignorePrefix) Read from a given blob given metadata map.writeMetadata
(Blob blob, Map<String, Object> metadata, boolean ignorePrefix) Write given metadata into given blob.
-
Method Details
-
writeMetadata
Write given metadata into given blob. Since 7.3 ignorePrefix is added.- Parameters:
blob
- Blob to write.metadata
- Metadata to inject.- Returns:
- the updated blob, or
null
if there was an error (since 7.4)
-
readMetadata
Read from a given blob given metadata map. Since 7.3 ignorePrefix is added.- Parameters:
blob
- Blob to read.metadata
- Metadata to extract.- Returns:
- Metadata map.
-
readMetadata
Read all metadata from a given blob. Since 7.3 ignorePrefix is added.- Parameters:
blob
- Blob to read.- Returns:
- Metadata map.
-