SageTV Platform
V9.0

sage.media.rss
Class RSSParser

java.lang.Object
  extended by sage.media.rss.RSSParser

public class RSSParser
extends java.lang.Object

Copyright 2015 The SageTV Authors. All Rights Reserved. RSS Parser.

This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.

Since:
RSSLIB4J 0.1

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

RSSParser

public RSSParser()
Method Detail

setHandler

public void setHandler(org.xml.sax.helpers.DefaultHandler h)
Set the event handler

Parameters:
h - the DefaultHandler

setXmlResource

public void setXmlResource(java.lang.String file_name)
                    throws RSSException
Set rss resource by local file name

Parameters:
file_name - loca file name
Throws:
RSSException

setXmlResource

public void setXmlResource(java.net.URL ur)
                    throws RSSException
Set rss resource by URL

Parameters:
ur - the remote url
Throws:
RSSException

setValidate

public void setValidate(boolean b)
set true if parse have to validate the document defoult is false

Parameters:
b - true or false

parseXmlFile

public static void parseXmlFile(java.lang.String filename,
                                org.xml.sax.helpers.DefaultHandler handler,
                                boolean validating)
                         throws RSSException
Parse rss file

Parameters:
filename - local file name
handler - the handler
validating - validate document??
Throws:
RSSException

parseXmlFile

public static void parseXmlFile(java.net.URL remote_url,
                                org.xml.sax.helpers.DefaultHandler handler,
                                boolean validating)
                         throws RSSException
Parse rss file from a url

Parameters:
remote_url - remote rss file
handler - the handler
validating - validate document??
Throws:
RSSException

free

public void free()
Call it at the end of the work to preserve memory


parse

public void parse()
           throws RSSException
Parse the documen

Throws:
RSSException

SageTV Platform
V9.0

SageTV is a trademark or registered trademark of Google, Inc. in the US and other countries.
Copyright 2000-2015 The SageTV Authors. All Rights Reserved.