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.AtomHandler
Content.ChildHandlerInfo
IContent.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, setUri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEtag, getMimeType, getUri
protected MediaSource mediaSource
public MediaSource getMediaSource()
null
.getMediaSource
in interface IMediaContent
public void setMediaSource(MediaSource v)
null
if no supplied content.setMediaSource
in interface IMediaContent
public static Content.ChildHandlerInfo getChildHandler(ExtensionProfile extProfile, org.xml.sax.Attributes attrs) throws ParseException, java.io.IOException
ParseException
java.io.IOException