com.macromedia.rssu
Class Enclosure

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

public class Enclosure
extends RssType

Enclosure describes a media object that is attached to the item. It has three required attributes. url says where the enclosure is located, length says how big it is in bytes, and type says what its type is, a standard MIME type


Constructor Summary
Enclosure()
           
Enclosure(java.lang.String url, long length, java.lang.String type)
           
 
Method Summary
 long getLength()
          Access the property "length" on this instance of Enclosure.
 java.lang.String getType()
          Access the property "type" on this instance of Enclosure.
 java.lang.String getUrl()
          Access the property "url" on this instance of Enclosure.
 void setLength(long length)
          Set the property "length" on this instance of Enclosure.
 void setType(java.lang.String type)
          Set the property "type" on this instance of Enclosure.
 void setUrl(java.lang.String url)
          Set the property "url" on this instance of Enclosure.
 
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

Enclosure

public Enclosure()

Enclosure

public Enclosure(java.lang.String url,
                 long length,
                 java.lang.String type)
Method Detail

setUrl

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

Parameters:
url - is the value of url to use

getUrl

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

Returns:
our current value of url

setLength

public void setLength(long length)
Set the property "length" on this instance of Enclosure.

Parameters:
length - is the value of length to use

getLength

public long getLength()
Access the property "length" on this instance of Enclosure.

Returns:
our current value of length

setType

public void setType(java.lang.String type)
Set the property "type" on this instance of Enclosure.

Parameters:
type - is the value of type to use

getType

public java.lang.String getType()
Access the property "type" on this instance of Enclosure.

Returns:
our current value of type