public interface XMPHandler
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.Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(java.lang.String mimeType)
Checks if the provided mime type is supported by the implementation
|
XMPMeta |
readXmp(Asset asset)
Deprecated.
|
XMPMetadata |
readXmpMetadata(Asset asset)
Read xmp packet from the original binary
|
void |
writeXmp(Asset asset,
byte[] xmpBytes)
Write xmp bytes back to the original binary
|
void |
writeXmp(Asset asset,
byte[] xmpBytes,
boolean createVersion)
Deprecated.
use
writeXmp(Asset, byte[], XMPWriteBackOptions) instead |
void |
writeXmp(Asset asset,
byte[] xmpBytes,
XMPWriteBackOptions writeBackOptions)
Write xmp bytes back to the original/renditions' binary
|
void |
writeXmp(Asset asset,
XMPMeta xmpMeta)
Deprecated.
|
void |
writeXmp(Asset asset,
XMPMeta xmpMeta,
boolean createVersion)
Deprecated.
use
writeXmp(Asset, XMPMeta, XMPWriteBackOptions) instead |
void |
writeXmp(Asset asset,
XMPMeta xmpMeta,
XMPWriteBackOptions writeBackOptions)
Write xmp meta back to the original/renditions' binary
|
void |
writeXmpMetadata(Asset asset,
XMPMetadata xmpMetadata,
XMPWriteBackOptions writeBackOptions)
Write xmp meta back to the original binary
|
boolean isSupported(java.lang.String mimeType)
mimeType
- to be checked@Deprecated XMPMeta readXmp(Asset asset) throws java.io.IOException
asset
- asset to read xmp fromjava.io.IOException
- if fails to read xmpXMPMetadata readXmpMetadata(Asset asset) throws java.io.IOException
asset
- asset to read xmp metadata fromjava.io.IOException
- if fails to read xmpvoid writeXmp(Asset asset, byte[] xmpBytes) throws java.io.IOException
asset
- asset to write xmp bytes back toxmpBytes
- xmp bytes to be written backjava.io.IOException
- if fails to write back xmp to the binary@Deprecated void writeXmp(Asset asset, XMPMeta xmpMeta) throws java.io.IOException
asset
- asset to write xmp meta back toxmpMeta
- objectjava.io.IOException
- if fails to write back xmp to the binaryvoid writeXmp(Asset asset, byte[] xmpBytes, boolean createVersion) throws java.io.IOException
writeXmp(Asset, byte[], XMPWriteBackOptions)
insteadasset
- asset asset to write xmp bytes back toxmpBytes
- xmp bytes to be written backcreateVersion
- if true then create versions of the asset on each writebackjava.io.IOException
- if fails to write back xmp to the binaryvoid writeXmp(Asset asset, XMPMeta xmpMeta, boolean createVersion) throws java.io.IOException
writeXmp(Asset, XMPMeta, XMPWriteBackOptions)
insteadasset
- asset to write xmp meta back toxmpMeta
- objectcreateVersion
- if true then create versions of the asset on each writebackjava.io.IOException
- if fails to write back xmp to the binaryvoid writeXmp(Asset asset, byte[] xmpBytes, XMPWriteBackOptions writeBackOptions) throws java.io.IOException
asset
- asset to write xmp bytes back toxmpBytes
- xmp bytes to be written backwriteBackOptions
- the XMP write back optionsjava.io.IOException
- if fails to write back xmp to the binaryvoid writeXmpMetadata(Asset asset, XMPMetadata xmpMetadata, XMPWriteBackOptions writeBackOptions) throws java.io.IOException
asset
- asset to write xmp meta back toxmpMetadata
- objectwriteBackOptions
- the XMP write back optionsjava.io.IOException
- if fails to write back xmp to the binaryvoid writeXmp(Asset asset, XMPMeta xmpMeta, XMPWriteBackOptions writeBackOptions) throws java.io.IOException
asset
- asset to write xmp meta back toxmpMeta
- objectwriteBackOptions
- the XMP write back optionsjava.io.IOException
- if fails to write back xmp to the binaryCopyright © 2010 - 2020 Adobe. All Rights Reserved