Package com.day.cq.dam.api.handler.xmp
Interface XMPHandler
public interface XMPHandler
The
XMPHandler interface defines the functionality needed to read and write XMP meta info to
and from Asset.
There can be only one active implementation at any given time. Highest ranked service will be used if more than one
implementations are available.-
Method Summary
Modifier and TypeMethodDescriptionbooleanisSupported(String mimeType) Checks if the provided mime type is supported by the implementationDeprecated.readXmpMetadata(Asset asset) Read xmp packet from the original binaryvoidWrite xmp bytes back to the original binaryvoidDeprecated.voidwriteXmp(Asset asset, byte[] xmpBytes, XMPWriteBackOptions writeBackOptions) Write xmp bytes back to the original/renditions' binaryvoidDeprecated.voidDeprecated.usewriteXmp(Asset, XMPMeta, XMPWriteBackOptions)insteadvoidwriteXmp(Asset asset, XMPMeta xmpMeta, XMPWriteBackOptions writeBackOptions) Write xmp meta back to the original/renditions' binaryvoidwriteXmpMetadata(Asset asset, XMPMetadata xmpMetadata, XMPWriteBackOptions writeBackOptions) Write xmp meta back to the original binary
-
Method Details
-
isSupported
Checks if the provided mime type is supported by the implementation- Parameters:
mimeType- to be checked- Returns:
- true if the given mime type is supported
-
readXmp
Deprecated.Read xmp packet from the original binary- Parameters:
asset- asset to read xmp from- Returns:
- XMPMeta
- Throws:
IOException- if fails to read xmp
-
readXmpMetadata
Read xmp packet from the original binary- Parameters:
asset- asset to read xmp metadata from- Returns:
- XMPMetaData
- Throws:
IOException- if fails to read xmp
-
writeXmp
Write xmp bytes back to the original binary- Parameters:
asset- asset to write xmp bytes back toxmpBytes- xmp bytes to be written back- Throws:
IOException- if fails to write back xmp to the binary
-
writeXmp
Deprecated.Write xmp meta back to the original binary- Parameters:
asset- asset to write xmp meta back toxmpMeta- object- Throws:
IOException- if fails to write back xmp to the binary
-
writeXmp
Deprecated.usewriteXmp(Asset, byte[], XMPWriteBackOptions)insteadWrite xmp bytes back to the original binary- Parameters:
asset- asset asset to write xmp bytes back toxmpBytes- xmp bytes to be written backcreateVersion- if true then create versions of the asset on each writeback- Throws:
IOException- if fails to write back xmp to the binary
-
writeXmp
Deprecated.usewriteXmp(Asset, XMPMeta, XMPWriteBackOptions)insteadWrite xmp meta back to the original binary- Parameters:
asset- asset to write xmp meta back toxmpMeta- objectcreateVersion- if true then create versions of the asset on each writeback- Throws:
IOException- if fails to write back xmp to the binary
-
writeXmp
void writeXmp(Asset asset, byte[] xmpBytes, XMPWriteBackOptions writeBackOptions) throws IOException Write xmp bytes back to the original/renditions' binary- Parameters:
asset- asset to write xmp bytes back toxmpBytes- xmp bytes to be written backwriteBackOptions- the XMP write back options- Throws:
IOException- if fails to write back xmp to the binary
-
writeXmpMetadata
void writeXmpMetadata(Asset asset, XMPMetadata xmpMetadata, XMPWriteBackOptions writeBackOptions) throws IOException Write xmp meta back to the original binary- Parameters:
asset- asset to write xmp meta back toxmpMetadata- objectwriteBackOptions- the XMP write back options- Throws:
IOException- if fails to write back xmp to the binary
-
writeXmp
void writeXmp(Asset asset, XMPMeta xmpMeta, XMPWriteBackOptions writeBackOptions) throws IOException Write xmp meta back to the original/renditions' binary- Parameters:
asset- asset to write xmp meta back toxmpMeta- objectwriteBackOptions- the XMP write back options- Throws:
IOException- if fails to write back xmp to the binary
-
writeXmp(Asset, byte[], XMPWriteBackOptions)instead