public interface

MediaSource

implements DataSource
com.google.gdata.data.media.MediaSource
Known Indirect Subclasses

Class Overview

The MediaSource interface provides a model for accessing media content sent by the GData client or returned by a GDataFeed service implementation. It extends the JavaBeans Activation Framework DataSource interface, making it possible to use the MediaSource as a DataSource within the framework for media handling.

When creating new GData entries using a MediaSource, the return value of the getName() method will be used to create a Slug header for the media source. Some concrete implementations of the MediaSource interface will provide the ability to set the name value and/or provide a default value based upon source attributes.

Summary

Nested Classes
class MediaSource.Output The Output class provides helper methods for MediaSource handling. 
Public Methods
abstract long getContentLength()
Returns the length (in bytes) of the media source.
abstract String getEtag()
Returns the entity tag (etag) value associated with the media content or null if unknown.
abstract DateTime getLastModified()
Returns the last modification time of the media content or null if unknown.
[Expand]
Inherited Methods
From interface javax.activation.DataSource

Public Methods

public abstract long getContentLength ()

Returns the length (in bytes) of the media source. A value of -1 indicates the length is unknown.

public abstract String getEtag ()

Returns the entity tag (etag) value associated with the media content or null if unknown.

public abstract DateTime getLastModified ()

Returns the last modification time of the media content or null if unknown.