public class MediaContent extends OutOfLineContent implements IMediaContent
OutOfLineContent to add
MediaSource handling for the content. This
class is used in contexts where a client or provider wants to provide
access to the actual media data via a MediaSource (instead of an href).OutOfLineContent.AtomHandlerContent.ChildHandlerInfoIContent.Type| Modifier and Type | Field and Description |
|---|---|
protected MediaSource |
mediaSource
MediaSource associated with the external content.
|
| Constructor and Description |
|---|
MediaContent() |
| Modifier and Type | Method and Description |
|---|---|
static Content.ChildHandlerInfo |
getChildHandler(ExtensionProfile extProfile,
org.xml.sax.Attributes attrs) |
MediaSource |
getMediaSource()
Returns the media source associated with the content or
null. |
void |
setMediaSource(MediaSource v)
Sets the media source associated with the content (may be
null
if no supplied content. |
generateAtom, generateRss, getEtag, getLang, getLength, getMimeType, getType, getUri, setEtag, setLang, setLength, setMimeType, setUriclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEtag, getMimeType, getUriprotected MediaSource mediaSource
public MediaSource getMediaSource()
null.getMediaSource in interface IMediaContentpublic void setMediaSource(MediaSource v)
null
if no supplied content.setMediaSource in interface IMediaContentpublic static Content.ChildHandlerInfo getChildHandler(ExtensionProfile extProfile, org.xml.sax.Attributes attrs) throws ParseException, java.io.IOException
ParseExceptionjava.io.IOException