| com.google.gdata.data.media.MediaSource |
Known Indirect Subclasses
|
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.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MediaSource.Output | The Output class provides helper methods for MediaSource handling. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the length (in bytes) of the media source.
| |||||||||||
Returns the entity tag (etag) value associated with the media content
or
null if unknown. | |||||||||||
Returns the last modification time of the media content or
null
if unknown. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
javax.activation.DataSource
| |||||||||||
Returns the length (in bytes) of the media source. A value of -1 indicates the length is unknown.
Returns the entity tag (etag) value associated with the media content
or null if unknown.
Returns the last modification time of the media content or null
if unknown.