|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.media.mediarss.AbstractMediaResource
com.google.gdata.data.media.mediarss.MediaContent
com.google.gdata.data.youtube.YouTubeMediaContent
public class YouTubeMediaContent
Adds an attribute in the yt: namespace to media:content.
This is really awkward to do in the gdata framework.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gdata.data.media.mediarss.MediaContent |
|---|
MediaContent.Expression |
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
AbstractExtension.AttributesHandler |
| Field Summary |
|---|
| Fields inherited from class com.google.gdata.data.ExtensionPoint |
|---|
xmlBlob |
| Fields inherited from class com.google.gdata.data.AbstractExtension |
|---|
localName, namespace |
| Constructor Summary | |
|---|---|
YouTubeMediaContent()
|
|
| Method Summary | |
|---|---|
protected void |
consumeAttributes(AttributeHelper attrsHelper)
Subclasses can overwrite this method to parse extra attributes. |
static ExtensionDescription |
getDefaultDescription()
Describes the tag to an ExtensionProfile. |
java.lang.Integer |
getYouTubeFormat()
Gets the youtube video format. |
protected void |
putAttributes(AttributeGenerator generator)
Subclasses can overwrite this method to add extra attributes. |
void |
setYouTubeFormat(java.lang.Integer youTubeFormat)
Sets the youtube video format, an opaque format number at this level. |
| Methods inherited from class com.google.gdata.data.media.mediarss.MediaContent |
|---|
getBitrate, getChannels, getDefaultDescription, getDuration, getExpression, getFileSize, getFramerate, getLanguage, getMedium, getSamplingrate, getType, isDefault, setBitrate, setChannels, setDefault, setDuration, setExpression, setFileSize, setFramerate, setLanguage, setMedium, setSamplingrate, setType |
| Methods inherited from class com.google.gdata.data.media.mediarss.AbstractMediaResource |
|---|
getHeight, getUrl, getWidth, setHeight, setUrl, setWidth |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gdata.data.Extension |
|---|
generate, getHandler |
| Constructor Detail |
|---|
public YouTubeMediaContent()
| Method Detail |
|---|
public static ExtensionDescription getDefaultDescription()
ExtensionProfile.
protected void putAttributes(AttributeGenerator generator)
AbstractMediaResource
putAttributes in class MediaContentgenerator - used to output attributes.
protected void consumeAttributes(AttributeHelper attrsHelper)
throws ParseException
AbstractMediaResource
consumeAttributes in class MediaContentattrsHelper - attribute helper
ParseException - any parsing exceptionpublic java.lang.Integer getYouTubeFormat()
public void setYouTubeFormat(java.lang.Integer youTubeFormat)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||