public abstract class

MediaFeed

extends BaseFeed<F extends BaseFeed, E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Source
         ↳ com.google.gdata.data.BaseFeed<F extends com.google.gdata.data.BaseFeed, E extends com.google.gdata.data.BaseEntry>
           ↳ com.google.gdata.data.media.MediaFeed<F extends com.google.gdata.data.BaseFeed, E extends com.google.gdata.data.BaseEntry>
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

The MediaFeed class extends BaseFeed to add media-related operations for feeds that contain media content.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.data.BaseFeed
From class com.google.gdata.data.Source
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Protected Constructors
MediaFeed(Class<? extends E> entryClass)
MediaFeed(Class<? extends E> entryClass, BaseFeed<?, ?> sourceFeed)
Public Methods
E insert(MediaSource media)
Inserts a new media resource into the feed, if the feed is currently associated with a Service.
void setService(Service v)
Sets that GData Service instance associated with this feed.
Protected Methods
<T extends E extends BaseEntry> T insert(MediaSource media, Class<T> mediaEntryClass)
Inserts a new media resource into the feed, if the feed is currently associated with a Service.
[Expand]
Inherited Methods
From class com.google.gdata.data.BaseFeed
From class com.google.gdata.data.Source
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IFeed
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Protected Constructors

protected MediaFeed (Class<? extends E> entryClass)

Parameters
entryClass

protected MediaFeed (Class<? extends E> entryClass, BaseFeed<?, ?> sourceFeed)

Parameters
entryClass
sourceFeed

Public Methods

public E insert (MediaSource media)

Inserts a new media resource into the feed, if the feed is currently associated with a Service.

Parameters
media
Returns
  • the inserted media Entry returned by the Service.
Throws
ServiceException If there is no associated GData service or the service is unable to perform the insertion.
UnsupportedOperationException If insert is not supported for the target feed.
IOException If there is an error communicating with the GData service.

public void setService (Service v)

Sets that GData Service instance associated with this feed.

Parameters
v

Protected Methods

protected T insert (MediaSource media, Class<T> mediaEntryClass)

Inserts a new media resource into the feed, if the feed is currently associated with a Service. This method is meant for subclasses to use when they support heterogeneous feeds.

Parameters
media
mediaEntryClass
Returns
  • the inserted media Entry returned by the Service.
Throws
ServiceException If there is no associated GData service or the service is unable to perform the insertion.
UnsupportedOperationException If insert is not supported for the target feed.
IOException If there is an error communicating with the GData service.