Class ExifToolProcessor
java.lang.Object
org.nuxeo.binary.metadata.internals.ExifToolProcessor
- All Implemented Interfaces:
BinaryMetadataProcessor
- Since:
- 7.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCommandTags
(List<String> metadataList) getCommandTags
(Map<String, Object> metadataMap) protected Blob
getTemporaryBlob
(Blob blob) Gets a new blob on a temporary file which is a copy of the blob's.protected CloseableFile
getTemporaryFile
(Blob blob) We don't want to rely onBlob.getCloseableFile()
because it may return the original and we always want a temporary one to be sure we have a clean filename to pass.protected void
parseDates
(Map<String, Object> resultMap) readMetadata
(String command, Blob blob, List<String> metadata) readMetadata
(String command, Blob blob, List<String> metadata, boolean ignorePrefix) Deprecated.readMetadata
(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.
-
Field Details
-
COMMAND_NOT_AVAILABLE
- See Also:
-
COMMAND_NOT_EXECUTABLE_NULL_BLOB
- See Also:
-
jacksonMapper
protected final com.fasterxml.jackson.databind.ObjectMapper jacksonMapper -
VALID_EXT
-
-
Constructor Details
-
ExifToolProcessor
public ExifToolProcessor()
-
-
Method Details
-
writeMetadata
Description copied from interface:BinaryMetadataProcessor
Write given metadata into given blob. Since 7.3 ignorePrefix is added.- Specified by:
writeMetadata
in interfaceBinaryMetadataProcessor
- Parameters:
blob
- Blob to write.metadata
- Metadata to inject.- Returns:
- the updated blob, or
null
if there was an error (since 7.4)
-
readMetadata
@Deprecated(since="11.5") protected Map<String,Object> readMetadata(String command, Blob blob, List<String> metadata, boolean ignorePrefix) Deprecated.since 11.5, usereadMetadata(String, Blob, List)
instead -
readMetadata
- Since:
- 11.5
-
readMetadata
Description copied from interface:BinaryMetadataProcessor
Read from a given blob given metadata map. Since 7.3 ignorePrefix is added.- Specified by:
readMetadata
in interfaceBinaryMetadataProcessor
- Parameters:
blob
- Blob to read.metadata
- Metadata to extract.- Returns:
- Metadata map.
-
readMetadata
Description copied from interface:BinaryMetadataProcessor
Read all metadata from a given blob. Since 7.3 ignorePrefix is added.- Specified by:
readMetadata
in interfaceBinaryMetadataProcessor
- Parameters:
blob
- Blob to read.- Returns:
- Metadata map.
-
returnResultMap
- Throws:
IOException
-
parseDates
- Since:
- 7.4
-
getCommandTags
-
getCommandTags
-
getTemporaryFile
We don't want to rely onBlob.getCloseableFile()
because it may return the original and we always want a temporary one to be sure we have a clean filename to pass.- Throws:
IOException
- Since:
- 7.4
-
getTemporaryBlob
Gets a new blob on a temporary file which is a copy of the blob's.- Throws:
IOException
- Since:
- 7.4
-
readMetadata(String, Blob, List)
instead