com.macromedia.rssu
Class Image

java.lang.Object
  extended bycom.macromedia.rssu.RssType
      extended bycom.macromedia.rssu.Image

public class Image
extends RssType

This represents an Image in the RSS world.


Constructor Summary
Image()
           
Image(java.lang.String url, java.lang.String title, java.lang.String link)
          Construct an image with all of its properties set.
 
Method Summary
 java.lang.String getAbout()
          Access the property "about" on this instance of Image.
 byte[] getBytes()
          Get the data of this image.
 java.lang.String getDescription()
          Access the property "description" on this instance of Image.
 int getHeight()
          Access the property "height" on this instance of Image.
 java.lang.String getLink()
          Access the property "link" on this instance of Image.
 java.lang.String getMimeType()
          Return the mime type of this image.
 java.lang.String getTitle()
          Access the property "title" on this instance of Image.
 java.lang.String getUrl()
          Access the property "url" on this instance of Image.
 int getWidth()
          Access the property "width" on this instance of Image.
 void setAbout(java.lang.String about)
          Set the property "about" on this instance of Image.
 void setDescription(java.lang.String description)
          Set the property "description" on this instance of Image.
 void setHeight(int height)
          Set the property "height" on this instance of Image.
 void setLink(java.lang.String link)
          Set the property "link" on this instance of Image.
 void setTitle(java.lang.String title)
          Set the property "title" on this instance of Image.
 void setUrl(java.lang.String url)
          Set the property "url" on this instance of Image.
 void setWidth(int width)
          Set the property "width" on this instance of Image.
 
Methods inherited from class com.macromedia.rssu.RssType
getProperty, setProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image()

Image

public Image(java.lang.String url,
             java.lang.String title,
             java.lang.String link)
Construct an image with all of its properties set.

Parameters:
url - is the url to the image
title - the title of the image, probably alt value to use
link - where this image should click through to
Method Detail

setUrl

public void setUrl(java.lang.String url)
Set the property "url" on this instance of Image.

Parameters:
url - is the value of url to use

getUrl

public java.lang.String getUrl()
Access the property "url" on this instance of Image.

Returns:
our current value of url

setTitle

public void setTitle(java.lang.String title)
Set the property "title" on this instance of Image.

Parameters:
title - is the value of title to use

getTitle

public java.lang.String getTitle()
Access the property "title" on this instance of Image.

Returns:
our current value of title

setLink

public void setLink(java.lang.String link)
Set the property "link" on this instance of Image.

Parameters:
link - is the value of link to use

getLink

public java.lang.String getLink()
Access the property "link" on this instance of Image.

Returns:
our current value of link

setHeight

public void setHeight(int height)
Set the property "height" on this instance of Image.

Parameters:
height - is the value of height to use

getHeight

public int getHeight()
Access the property "height" on this instance of Image.

Returns:
our current value of height

setWidth

public void setWidth(int width)
Set the property "width" on this instance of Image.

Parameters:
width - is the value of width to use

getWidth

public int getWidth()
Access the property "width" on this instance of Image.

Returns:
our current value of width

setDescription

public void setDescription(java.lang.String description)
Set the property "description" on this instance of Image.

Parameters:
description - is the value of description to use

getDescription

public java.lang.String getDescription()
Access the property "description" on this instance of Image.

Returns:
our current value of description

setAbout

public void setAbout(java.lang.String about)
Set the property "about" on this instance of Image.

Parameters:
about - is the value of about to use

getAbout

public java.lang.String getAbout()
Access the property "about" on this instance of Image.

Returns:
our current value of about

getBytes

public byte[] getBytes()
                throws RssException
Get the data of this image. This data will only be retrieved the time this method is invoked

Returns:
the bytes of the data
Throws:
RssException

getMimeType

public java.lang.String getMimeType()
                             throws RssException
Return the mime type of this image. For example, may be image/gif, image/png or image/jpeg. This requires the image to be downloaded

Returns:
the mime type of this image or null if it can't be determined
Throws:
RssException