public class RSS extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION_0_91
The RSS version 0.91 identifier.
|
static String |
VERSION_0_92
The RSS version 0.92 identifier.
|
static String |
VERSION_2_0
The RSS version 2.0 identifier.
|
| Constructor and Description |
|---|
RSS()
Builds a new and empty RSS feed.
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel()
Returns the channel assigned to this RSS document.
|
String |
getVersion()
Returns the version of RSS that this document conforms to.
|
void |
setChannel(Channel channel)
Assigns the specified channel to this RSS document.
|
void |
setVersion(String version)
Initializes the version of RSS that this document conforms to.
|
public static final String VERSION_2_0
public static final String VERSION_0_92
public static final String VERSION_0_91
public String getVersion()
VERSION_2_0.null.setVersion(java.lang.String)public void setVersion(String version)
version - a version number. SHall not be null.NullPointerException - if version is null.getVersion(),
VERSION_0_91,
VERSION_0_92,
VERSION_2_0public Channel getChannel()
null.setChannel(chameleon.rss.Channel)public void setChannel(Channel channel)
channel - a RSS channel. Shall not be null.NullPointerException - if channel is null.getChannel()Copyright © 2008–2017. All rights reserved.