public class YouTubeMediaContent extends MediaContent
media:content
.
This is really awkward to do in the gdata framework.MediaContent.Expression
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
xmlBlob
localName, namespace
Constructor and Description |
---|
YouTubeMediaContent() |
Modifier and Type | Method and Description |
---|---|
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.
|
getBitrate, getChannels, getDefaultDescription, getDuration, getExpression, getFileSize, getFramerate, getLanguage, getMedium, getSamplingrate, getType, isDefault, setBitrate, setChannels, setDefault, setDuration, setExpression, setFileSize, setFramerate, setLanguage, setMedium, setSamplingrate, setType
getHeight, getUrl, getWidth, setHeight, setUrl, setWidth
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getHandler, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildren
disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate, getHandler
public static ExtensionDescription getDefaultDescription()
ExtensionProfile
.protected void putAttributes(AttributeGenerator generator)
AbstractMediaResource
putAttributes
in class MediaContent
generator
- used to output attributes.protected void consumeAttributes(AttributeHelper attrsHelper) throws ParseException
AbstractMediaResource
consumeAttributes
in class MediaContent
attrsHelper
- attribute helperParseException
- any parsing exceptionpublic java.lang.Integer getYouTubeFormat()
public void setYouTubeFormat(java.lang.Integer youTubeFormat)