public class RSS
extends java.lang.Object
| Constructor and Description |
|---|
RSS() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Get the list of attributes.
|
java.util.List<RSSItem> |
getItems() |
static java.lang.String |
getXMLText(org.w3c.dom.Node n)
Simple utility method that obtains the text of an XML node.
|
void |
load(java.net.URL url)
Load all RSS data from the specified URL.
|
void |
load(java.net.URL url,
int timeout)
Load all RSS data from the specified URL.
|
static java.util.Date |
parseDate(java.lang.String datestr)
Simple utility function that converts a RSS formatted date into a Java
date.
|
java.lang.String |
toString() |
public static java.lang.String getXMLText(org.w3c.dom.Node n)
n - The XML node.public static java.util.Date parseDate(java.lang.String datestr)
datestr - The RSS formatted date.public final java.util.Map<java.lang.String,java.lang.String> getAttributes()
public final java.util.List<RSSItem> getItems()
public final void load(java.net.URL url)
url - The URL to load.public final void load(java.net.URL url,
int timeout)
url - URL that contains XML data.timeout - The timeout value.public final java.lang.String toString()
toString in class java.lang.Object