com.sun.syndication.feed.rss
Class Enclosure

java.lang.Object
  extended bycom.sun.syndication.common.ObjectBean
      extended bycom.sun.syndication.feed.rss.Enclosure
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, ToString

public class Enclosure
extends ObjectBean

Bean for item enclosures of RSS feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
Enclosure()
          Default constructor.
 
Method Summary
 int getLength()
          Returns the enclosure length.
 java.lang.String getType()
          Returns the enclosure type.
 java.lang.String getUrl()
          Returns the enclosure URL.
 void setLength(int length)
          Sets the enclosure length.
 void setType(java.lang.String type)
          Sets the enclosure type.
 void setUrl(java.lang.String url)
          Sets the enclosure URL.
 
Methods inherited from class com.sun.syndication.common.ObjectBean
clone, equals, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Enclosure

public Enclosure()
Default constructor. All properties are set to null.

Method Detail

getUrl

public java.lang.String getUrl()
Returns the enclosure URL.

Returns:
the enclosure URL, null if none.

setUrl

public void setUrl(java.lang.String url)
Sets the enclosure URL.

Parameters:
url - the enclosure URL to set, null if none.

getLength

public int getLength()
Returns the enclosure length.

Returns:
the enclosure length, null if none.

setLength

public void setLength(int length)
Sets the enclosure length.

Parameters:
length - the enclosure length to set, null if none.

getType

public java.lang.String getType()
Returns the enclosure type.

Returns:
the enclosure type, null if none.

setType

public void setType(java.lang.String type)
Sets the enclosure type.

Parameters:
type - the enclosure type to set, null if none.


Copyright © 2004 Sun Microsystems. All Rights Reserved.