public interface MediaSource
extends javax.activation.DataSource
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 DataSource.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.
Modifier and Type | Interface and Description |
---|---|
static class |
MediaSource.Output
The Output class provides helper methods for MediaSource handling.
|
Modifier and Type | Method and Description |
---|---|
long |
getContentLength()
Returns the length (in bytes) of the media source.
|
java.lang.String |
getEtag()
Returns the entity tag (etag) value associated with the media content
or
null if unknown. |
DateTime |
getLastModified()
Returns the last modification time of the media content or
null
if unknown. |
long getContentLength()
DateTime getLastModified()
null
if unknown.java.lang.String getEtag()
null
if unknown.