org.apache.commons.feedparser
Interface FeedParser

All Known Implementing Classes:
FeedParserImpl

public interface FeedParser

This FeedParser implementation is based on JDOM and Jaxen and is based around XPath and JDOM iteration. While the implementation is straight forward it has not been optimized for performance. A SAX based parser would certainly be less memory intensive but with the downside of being harder to develop.

Version:
$Id: FeedParser.java 155416 2005-02-26 13:00:10Z dirkv $
Author:
Kevin A. Burton (burtonator)

Method Summary
 void parse(FeedParserListener listener, org.jdom.Document doc)
          Parse this feed.
 void parse(FeedParserListener listener, InputStream is)
          Deprecated. Use #parse( FeedParserException, InputStream, String )
 void parse(FeedParserListener listener, InputStream is, String resource)
          Parse this feed.
 

Method Detail

parse

void parse(FeedParserListener listener,
           InputStream is,
           String resource)
           throws FeedParserException
Parse this feed.

Parameters:
resource - The URL of the feed being parsed. This is optional and may be null but is used when an exception is thrown to aid debugging.
Throws:
FeedParserException

parse

void parse(FeedParserListener listener,
           InputStream is)
           throws FeedParserException
Deprecated. Use #parse( FeedParserException, InputStream, String )

Throws:
FeedParserException

parse

void parse(FeedParserListener listener,
           org.jdom.Document doc)
           throws FeedParserException
Parse this feed.

Throws:
FeedParserException


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.