|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.media.rss.RSSParser
public class RSSParser
RSS Parser.
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.
| Constructor Summary | |
|---|---|
RSSParser()
|
|
| Method Summary | |
|---|---|
void |
free()
Call it at the end of the work to preserve memory |
void |
parse()
Parse the documen |
static void |
parseXmlFile(java.lang.String filename,
org.xml.sax.helpers.DefaultHandler handler,
boolean validating)
Parse rss file |
static void |
parseXmlFile(java.net.URL remote_url,
org.xml.sax.helpers.DefaultHandler handler,
boolean validating)
Parse rss file from a url |
void |
setHandler(org.xml.sax.helpers.DefaultHandler h)
Set the event handler |
void |
setValidate(boolean b)
set true if parse have to validate the document defoult is false |
void |
setXmlResource(java.lang.String file_name)
Set rss resource by local file name |
void |
setXmlResource(java.net.URL ur)
Set rss resource by URL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RSSParser()
| Method Detail |
|---|
public void setHandler(org.xml.sax.helpers.DefaultHandler h)
h - the DefaultHandler
public void setXmlResource(java.lang.String file_name)
throws RSSException
file_name - loca file name
RSSException
public void setXmlResource(java.net.URL ur)
throws RSSException
ur - the remote url
RSSExceptionpublic void setValidate(boolean b)
b - true or false
public static void parseXmlFile(java.lang.String filename,
org.xml.sax.helpers.DefaultHandler handler,
boolean validating)
throws RSSException
filename - local file namehandler - the handlervalidating - validate document??
RSSException
public static void parseXmlFile(java.net.URL remote_url,
org.xml.sax.helpers.DefaultHandler handler,
boolean validating)
throws RSSException
remote_url - remote rss filehandler - the handlervalidating - validate document??
RSSExceptionpublic void free()
public void parse()
throws RSSException
RSSException
|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||