com.sun.syndication.feed
Class WireFeed

java.lang.Object
  extended bycom.sun.syndication.common.ObjectBean
      extended bycom.sun.syndication.feed.WireFeed
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, ToString
Direct Known Subclasses:
Channel, Feed

public abstract class WireFeed
extends ObjectBean

Parent class of the RSS (Channel) and Atom (Feed) feed beans.

NOTE: We don't like this class at this package level but the alternative would have been a proliferation of packages (one more level to hold atom and rss package with this class just in that package).

The format of the 'type' property must be [FEEDNAME]_[FEEDVERSION] with the FEEDNAME in lower case, for example: rss_0.9, rss_0.93, atom_0.3

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
protected WireFeed(java.lang.Class beanClass)
          Default constructor, for bean cloning purposes only.
protected WireFeed(java.lang.Class beanClass, java.lang.String type)
          Creates a feed for a given type.
 
Method Summary
 java.lang.String getEncoding()
          Returns the charset encoding of a the feed.
 java.lang.String getFeedType()
          Returns the type of the feed.
 void setEncoding(java.lang.String encoding)
          Sets the charset encoding of a the feed.
 void setFeedType(java.lang.String feedType)
          Sets the feedType of a the feed.
 
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

WireFeed

protected WireFeed(java.lang.Class beanClass)
Default constructor, for bean cloning purposes only.

Parameters:
beanClass - the class/interface to be used for property scanning.

WireFeed

protected WireFeed(java.lang.Class beanClass,
                   java.lang.String type)
Creates a feed for a given type.

Parameters:
beanClass - the class/interface to be used for property scanning.
type - of the feed to create.
Method Detail

setFeedType

public void setFeedType(java.lang.String feedType)
Sets the feedType of a the feed. Do not use, for bean cloning purposes only.

Parameters:
feedType - the feedType of the feed.

getFeedType

public java.lang.String getFeedType()
Returns the type of the feed.

Returns:
the type of the feed.

getEncoding

public java.lang.String getEncoding()
Returns the charset encoding of a the feed. This is not set by Rome parsers.

Returns:
the charset encoding of the feed.

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the charset encoding of a the feed. This is not set by Rome parsers.

Parameters:
encoding - the charset encoding of the feed.


Copyright © 2004 Sun Microsystems. All Rights Reserved.