|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.bot.rss.RSS
public class RSS
This is the class that actually parses the RSS and builds a collection of RSSItems. To make use of this class call the load method with a URL that points to RSS.
Constructor Summary | |
---|---|
RSS()
|
Method Summary | |
---|---|
Map<String,String> |
getAttributes()
Get the list of attributes. |
List<RSSItem> |
getItems()
|
static String |
getXMLText(Node n)
Simple utility method that obtains the text of an XML node. |
void |
load(URL url)
Load all RSS data from the specified URL. |
void |
load(URL url,
int timeout)
Load all RSS data from the specified URL. |
static Date |
parseDate(String datestr)
Simple utility function that converts a RSS formatted date into a Java date. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RSS()
Method Detail |
---|
public static String getXMLText(Node n)
n
- The XML node.
public static Date parseDate(String datestr)
datestr
- The RSS formatted date.
public final Map<String,String> getAttributes()
public final List<RSSItem> getItems()
public final void load(URL url)
url
- The URL to load.public final void load(URL url, int timeout)
url
- URL that contains XML data.timeout
- The timeout value.public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |