org.ocap.hn.content
Interface StreamableContentResource

All Superinterfaces:
ContentEntry, ContentResource

public interface StreamableContentResource
extends ContentResource

Abstract class representing content that can be streamed, e.g., MPEG file.


Field Summary
 
Fields inherited from interface org.ocap.hn.content.ContentResource
UNKNOWN_MIME_TYPE
 
Method Summary
 long getBitrate()
          Gets the Bitrate this content is encoded with or -1 if not known.
 Time getDuration()
          Gets the duration of this content.
 
Methods inherited from interface org.ocap.hn.content.ContentResource
delete, getContentFormat, getContentItem, getContentSize, getCreationDate, getExtendedFileAccessPermissions, getLocator, getNetwork, getProtocol, getResourceProperty
 
Methods inherited from interface org.ocap.hn.content.ContentEntry
getMetadata, getName, getParent, getServer
 

Method Detail

getDuration

Time getDuration()
Gets the duration of this content.

Returns:
the duration of the content.

getBitrate

long getBitrate()
Gets the Bitrate this content is encoded with or -1 if not known.

Returns:
the bit rate of the content in bytes per second or -1 if not known.