org.encog.bot.rss
public class RSS extends Object
Constructor and Description |
---|
RSS() |
Modifier and Type | Method and Description |
---|---|
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() |
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 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.Copyright © 2014. All Rights Reserved.