public class CmsdkMediaDriver extends Object implements CustomMediaDriver
Constructor and Description |
---|
CmsdkMediaDriver() |
Modifier and Type | Method and Description |
---|---|
void |
destroyContent(S_MediaCustom media,
String address,
Long cid,
AttributeValue[] mediaOptions)
Destroys content with the specified content address.
|
protected Object |
getBinary(S_MediaCustom media,
Long cid)
Gets the InputStream for the specified content id.
|
InputStream |
getContent(S_MediaCustom media,
String address)
Gets the content for the specified content address.
|
long |
getContentSize(S_MediaCustom media,
String address)
Gets the content size, in bytes, for the specified content address.
|
RandomAccessDriver |
getRandomAccessorDriver(S_MediaCustom media,
String address)
Gets a RandomAccessDriver for the specified content address.
|
void |
initialize(S_CustomMediaDriverSpecification cmds)
Initializes this CustomMediaDriver.
|
String |
setContent(S_MediaCustom media,
Long cid,
InputStream is,
AttributeValue[] mediaOptions)
Stores content from the supplied InputStream.
|
String |
setContentReference(S_MediaCustom media,
Long cid,
String contentReference,
AttributeValue[] mediaOptions)
Stores content determined from a specified content reference.
|
public void initialize(S_CustomMediaDriverSpecification cmds) throws IfsException
initialize
in interface CustomMediaDriver
cmds
- the CustomMediaDriver specificationIfsException
- 13800: if the operation failspublic InputStream getContent(S_MediaCustom media, String address) throws IfsException
getContent
in interface CustomMediaDriver
media
- the MediaCustom instanceaddress
- the content addressIfsException
- 13801: if the operation failspublic long getContentSize(S_MediaCustom media, String address) throws IfsException
getContentSize
in interface CustomMediaDriver
media
- the MediaCustom instanceaddress
- the content addressIfsException
- 13802: if the operation failspublic String setContent(S_MediaCustom media, Long cid, InputStream is, AttributeValue[] mediaOptions) throws IfsException
setContent
in interface CustomMediaDriver
media
- the MediaCustom instancecid
- the content idis
- the contentmediaOptions
- a set of name/value pairs whose semantics are
determined by the CustomMediaDriver implementation,
or null for no media optionsIfsException
- 13803: if the operation failspublic String setContentReference(S_MediaCustom media, Long cid, String contentReference, AttributeValue[] mediaOptions) throws IfsException
The interpretation of contentReference
is determined by
the CustomMediaDriver implementation. Some implementations may store
its value, while others may resolve its value (in a implementation
determined fashion) to other content and store that content instead.
setContentReference
in interface CustomMediaDriver
media
- the MediaCustom instancecid
- the content idcontentReference
- the content referencemediaOptions
- a set of name/value pairs whose semantics are
determined by the CustomMediaDriver
implementation, or null for no media optionsIfsException
- 13804: if the operation failspublic RandomAccessDriver getRandomAccessorDriver(S_MediaCustom media, String address) throws IfsException
getRandomAccessorDriver
in interface CustomMediaDriver
media
- the MediaCustom instanceaddress
- the content addressIfsException
- 13805: if the operation failspublic void destroyContent(S_MediaCustom media, String address, Long cid, AttributeValue[] mediaOptions) throws IfsException
destroyContent
in interface CustomMediaDriver
media
- the MediaCustom instanceaddress
- the content addresscid
- the content idmediaOptions
- a set of name/value pairs whose semantics are
determined by the CustomMediaDriver implementation,
or null for no media optionsIfsException
- 13806: if the operation failsprotected Object getBinary(S_MediaCustom media, Long cid) throws IfsException
media
- the media custom objectcid
- the content idIfsException
- if the operation failsCopyright © 2023. All rights reserved.