com.sun.syndication.feed.module.mediarss.types
Class Thumbnail

java.lang.Object
  extended by com.sun.syndication.feed.module.mediarss.types.Thumbnail
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Thumbnail
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

<media:thumbnail>

Allows particular images to be used as representative images for the media object. If multiple thumbnails are included, and time coding is not at play, it is assumed that the images are in order of importance. It has 1 required attribute and 3 optional attributes.

        <media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123" />

url specifies the url of the thumbnail. It is a required attribute.

height specifies the height of the thumbnail. It is an optional attribute.

width specifies the width of the thumbnail. It is an optional attribute.

time specifies the time offset in relation to the media object. Typically this is used when creating multiple keyframes within a single video. The format for this attribute should be in the DSM-CC's Normal Play Time (NTP) as used in RTSP [RFC 2326 3.6 Normal Play Time]. It is an optional attribute.

See Also:
Serialized Form

Constructor Summary
Thumbnail(java.net.URI url)
          Creates a new thumbnail
Thumbnail(java.net.URI url, java.lang.Integer width, java.lang.Integer height)
          Creates a new thumbnail
Thumbnail(java.net.URI url, java.lang.Integer width, java.lang.Integer height, Time time)
          Creates a new thumbnail
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getHeight()
          Returns the thumbHeight.
 Time getTime()
          returns the time that the thumbnail was captured from its source
 java.net.URI getUrl()
          Retursn the URL
 java.lang.Integer getWidth()
          Returns width.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Thumbnail

public Thumbnail(java.net.URI url,
                 java.lang.Integer width,
                 java.lang.Integer height,
                 Time time)
Creates a new thumbnail

Parameters:
url - URL to thumbnail
width - width in pixels
height - height in pixels
time - Timecode representing the thumbnails position in a source.

Thumbnail

public Thumbnail(java.net.URI url,
                 java.lang.Integer width,
                 java.lang.Integer height)
Creates a new thumbnail

Parameters:
url - URL
width - width
height - height

Thumbnail

public Thumbnail(java.net.URI url)
Creates a new thumbnail

Parameters:
url - URL
Method Detail

getHeight

public java.lang.Integer getHeight()
Returns the thumbHeight.

Returns:
Returns the thumbHeight.

getTime

public Time getTime()
returns the time that the thumbnail was captured from its source

Returns:
returns the time that the thumbnail was captured from its source

getUrl

public java.net.URI getUrl()
Retursn the URL

Returns:
Returns the thumbUrl.

getWidth

public java.lang.Integer getWidth()
Returns width.

Returns:
Returns the thumbWidth.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.