com.google.gdata.data.media
Class BaseMediaSource
java.lang.Object
com.google.gdata.data.media.BaseMediaSource
- All Implemented Interfaces:
- MediaSource, javax.activation.DataSource
- Direct Known Subclasses:
- MediaByteArraySource, MediaFileSource, MediaStreamSource
public abstract class BaseMediaSource
- extends java.lang.Object
- implements MediaSource
The BaseMediaSource class provides an abstract base class
implementation of the MediaSource
interface.
- See Also:
MediaSource
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.activation.DataSource |
getInputStream, getOutputStream |
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface javax.activation.DataSource
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
- Specified by:
getName
in interface javax.activation.DataSource
setLastModified
public void setLastModified(DateTime lastModified)
getLastModified
public DateTime getLastModified()
- Description copied from interface:
MediaSource
- Returns the last modification time of the media content or
null
if unknown.
- Specified by:
getLastModified
in interface MediaSource
setContentLength
public void setContentLength(long contentLength)
getContentLength
public long getContentLength()
- Description copied from interface:
MediaSource
- Returns the length (in bytes) of the media source. A value of -1
indicates the length is unknown.
- Specified by:
getContentLength
in interface MediaSource
setEtag
public void setEtag(java.lang.String etag)
getEtag
public java.lang.String getEtag()
- Description copied from interface:
MediaSource
- Returns the entity tag (etag) value associated with the media content
or
null
if unknown.
- Specified by:
getEtag
in interface MediaSource