public interface ContentResource
AudioResource and/or VideoResource depending on whether
the content represents audio and/or video.| Modifier and Type | Field and Description |
|---|---|
static String |
UNKNOWN_MIME_TYPE
Constant for an unknown MIME type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Deletes the binary representation of this ContentResource and the
ContentResource is removed from any containing ContentEntry.
|
String |
getContentFormat()
Returns the content format.
|
ContentItem |
getContentItem()
Gets the ContentItem this resource belongs to.
|
long |
getContentSize()
Gets the size of the content in bytes or -1 if not known.
|
Date |
getCreationDate()
Gets the creation date of the content or NULL if not known.
|
org.ocap.storage.ExtendedFileAccessPermissions |
getExtendedFileAccessPermissions()
Returns the file permissions of a ContentResource.
|
javax.tv.locator.Locator |
getLocator()
Gets an OcapLocator to the content associated with this ContentResource
if the content can be located with that Locator type, otherwise
returns an implementation specific Locator to the content.
|
String |
getNetwork()
Returns the network on which the content is available.
|
String |
getProtocol()
Returns the protocol which can be used to retrieve the content.
|
Object |
getResourceProperty(String key)
Returns properties of the resource.
|
boolean |
isRenderable()
Checks whether the local device has the capabilities to render this
content resource.
|
static final String UNKNOWN_MIME_TYPE
boolean delete()
throws IOException
SecurityException - if the application is does not have
a write ExtendedFileAccessPermission.IOException - if the ContentResource is not local.ContentItem getContentItem()
long getContentSize()
Date getCreationDate()
javax.tv.locator.Locator getLocator()
org.ocap.storage.ExtendedFileAccessPermissions getExtendedFileAccessPermissions()
String getProtocol()
String getNetwork()
| <protocol> | <network> |
| "http-get" | "*" |
| "rtsp-rtp-udp" | "*" |
| "internal" | IP address of the device hosting the Connection manager |
| "iec61883" | GUID of the 1394 bus Isochronous Resource Manager |
| ICANN domain | Vendor-defined, may be "*" |
String getContentFormat()
| <protocol> | <network> |
| "http-get" | MIME-type |
| "rtsp-rtp-udp" | Name of RTP payload type |
| "internal" | Vendor-defined, may be "*" |
| "iec61883" | Name standardised by IEC61883 |
| ICANN domain | Vendor-defined, may be "*" |
Object getResourceProperty(String key)
AudioResource and
VideoResource. This method allows for custom or new properties.key - The key of the property.boolean isRenderable()
Copyright © 2012 CableLabs. All Rights Reserved.