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
- java.io.IOException
- if fails to read xmpXMPMetadata readXmpMetadata(Asset asset) throws java.io.IOException
asset
- java.io.IOException
- if fails to read xmpvoid writeXmp(Asset asset, byte[] xmpBytes) throws java.io.IOException
asset
- xmpBytes
- java.io.IOException
- if fails to write back xmp to the binary@Deprecated void writeXmp(Asset asset, XMPMeta xmpMeta) throws java.io.IOException
asset
- xmpMeta
- 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
- xmpBytes
- createVersion
- 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
- xmpMeta
- 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
- xmpBytes
- writeBackOptions
- 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
- xmpMetadata
- 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
- xmpMeta
- objectwriteBackOptions
- the XMP write back optionsjava.io.IOException
- if fails to write back xmp to the binary"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"