|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentResource
Abstract class representing a media stream/file. Subclasses of this class
can implement AudioResource
and/or VideoResource
depending on whether
the content represents audio and/or video.
Field Summary | |
---|---|
static String |
UNKNOWN_MIME_TYPE
Constant for an unknown MIME type. |
Method Summary | |
---|---|
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. |
ExtendedFileAccessPermissions |
getExtendedFileAccessPermissions()
Returns the file permissions of a ContentResource. |
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. |
Methods inherited from interface org.ocap.hn.content.ContentEntry |
---|
getMetadata, getName, getParent, getServer |
Field Detail |
---|
static final String UNKNOWN_MIME_TYPE
Method Detail |
---|
boolean delete() throws IOException, SecurityException
delete
in interface ContentEntry
SecurityException
- if the application is does not have
a write ExtendedFileAccessPermission.
IOException
- if the ContentResource is not local.ContentManagementModule.delete(Locator, NetActionHandler)
ContentItem getContentItem()
long getContentSize()
getContentSize
in interface ContentEntry
Date getCreationDate()
getCreationDate
in interface ContentEntry
Locator getLocator()
ExtendedFileAccessPermissions getExtendedFileAccessPermissions()
getExtendedFileAccessPermissions
in interface ContentEntry
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |