public class

YtFormatInfo

extends AbstractExtension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.youtube.YtFormatInfo

Class Overview

Object representation for the yt:rating tag.

Summary

Constants
String DROP_FRAME
String FORMAT
String FRAME_RATE
String TIME_OFFSET
Fields
private boolean dropFrame
private String format
private String frameRate
private String timeOffset
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
YtFormatInfo()
Creates an empty tag.
YtFormatInfo(String format, String frameRate, String timeOffset, boolean dropFrame)
Creates a rating tag with the given attributes.
Public Methods
boolean getDropFrame()
String getFormat()
String getFrameRate()
String getTimeOffset()
void setDropFrame(boolean dropFrame)
void setFormat(String format)
void setFrameRate(String frameRate)
void setTimeOffset(String timeOffset)
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String DROP_FRAME

Constant Value: "dropFrame"

private static final String FORMAT

Constant Value: "format"

private static final String FRAME_RATE

Constant Value: "frameRate"

private static final String TIME_OFFSET

Constant Value: "timeOffset"

Fields

private boolean dropFrame

private String format

private String frameRate

private String timeOffset

Public Constructors

public YtFormatInfo ()

Creates an empty tag.

public YtFormatInfo (String format, String frameRate, String timeOffset, boolean dropFrame)

Creates a rating tag with the given attributes.

Parameters
format Caption file format name
frameRate Frame rate of the video
timeOffset Time offset to be applied to timestamps
dropFrame Does the format use the dropFrame technique

Public Methods

public boolean getDropFrame ()

Returns
  • whether dropFrame is used

public String getFormat ()

Returns
  • the format

public String getFrameRate ()

Returns
  • the frame rate

public String getTimeOffset ()

Returns
  • the time offset

public void setDropFrame (boolean dropFrame)

Parameters
dropFrame

public void setFormat (String format)

Parameters
format The caption file format to set

public void setFrameRate (String frameRate)

Parameters
frameRate The frame rate to set

public void setTimeOffset (String timeOffset)

Parameters
timeOffset The time offset to set

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator