|
The Encog Project | ||||||||
| 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
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 | |
|---|---|
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. |
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()
Convert the object to a String. |
| 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 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 java.util.Map<java.lang.String,java.lang.String> getAttributes()
public java.util.List<RSSItem> getItems()
public void load(java.net.URL url)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
url - URL that contains XML data.
java.io.IOException - Thrown if an IO error occurs.
org.xml.sax.SAXException - Thrown if there is an error while parsing XML.
javax.xml.parsers.ParserConfigurationException - Thrown if there is an XML parse config error.public java.lang.String toString()
toString in class java.lang.Object
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||