net.sourceforge.rssowl.dao.feedparser
Class OPML_1_0_Parser

java.lang.Object
  extended bynet.sourceforge.rssowl.dao.feedparser.AbstractFeedParser
      extended bynet.sourceforge.rssowl.dao.feedparser.OPML_1_0_Parser

public class OPML_1_0_Parser
extends AbstractFeedParser

Parser for the OPML 1.0 Format
Specification: http://www.opml.org/spec

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
 
Fields inherited from class net.sourceforge.rssowl.dao.feedparser.AbstractFeedParser
content, dc, defNs, document, rdf, root, rssChannel, sy, url
 
Constructor Summary
protected OPML_1_0_Parser(org.jdom.Document document, Channel rssChannel, String url, org.jdom.Namespace[] nameSpaces)
          Instantiate a new Parser for this format.
 
Method Summary
protected  void parse()
          Parse elements that are defined in the specifications and add them to the Channel.
private  void parseBody(org.jdom.Element body)
          Parse the Body element
private  void parseHead(org.jdom.Element head)
          Parse the Head Element
private  void parseOutline(org.jdom.Element outline)
          Recursivly parse Outline Elements
 
Methods inherited from class net.sourceforge.rssowl.dao.feedparser.AbstractFeedParser
getAttributeValue, getAttributeValue, getChildElement, getChildElement, getChildren, getChildren, getChildValue, getChildValue, parseContentModule, parseDCModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OPML_1_0_Parser

protected OPML_1_0_Parser(org.jdom.Document document,
                          Channel rssChannel,
                          String url,
                          org.jdom.Namespace[] nameSpaces)
                   throws NewsfeedFactoryException
Instantiate a new Parser for this format.

Parameters:
document - The document containing the data to parse
rssChannel - The Channel to fill with data from the document
url - The URL of the Newsfeed that is parsed
nameSpaces - Possible Namespaces of the XML document
Throws:
NewsfeedFactoryException - If any error occurs
Method Detail

parseBody

private void parseBody(org.jdom.Element body)
Parse the Body element

Parameters:
body - The Body element

parseHead

private void parseHead(org.jdom.Element head)
Parse the Head Element

Parameters:
head - The Head element

parseOutline

private void parseOutline(org.jdom.Element outline)
Recursivly parse Outline Elements

Parameters:
outline - The Outline element to parse

parse

protected void parse()
              throws NewsfeedFactoryException
Description copied from class: AbstractFeedParser
Parse elements that are defined in the specifications and add them to the Channel.

Specified by:
parse in class AbstractFeedParser
Throws:
NewsfeedFactoryException - If any error occurs
See Also:
AbstractFeedParser.parse()


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo