org.clapper.curn.parser.rome
Class RSSParserAdapter
java.lang.Object
org.clapper.curn.parser.rome.RSSParserAdapter
- All Implemented Interfaces:
- RSSParser
public class RSSParserAdapter
- extends java.lang.Object
- implements RSSParser
This class implements the RSSParser interface and defines an
adapter for the Rome
RSS Parser. Rome supports the
0.91, 0.92,
1.0,
2.0
and
Atom
RSS formats.
- Version:
- $Revision: 6476 $
- See Also:
RSSParserFactory,
RSSParser,
RSSChannelAdapter
|
Method Summary |
RSSChannel |
parseRSSFeed(java.net.URL url,
java.io.InputStream stream,
java.lang.String encoding)
Parse an RSS feed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSSParserAdapter
public RSSParserAdapter()
- Default constructor.
parseRSSFeed
public RSSChannel parseRSSFeed(java.net.URL url,
java.io.InputStream stream,
java.lang.String encoding)
throws java.io.IOException,
RSSParserException
- Parse an RSS feed.
- Specified by:
parseRSSFeed in interface RSSParser
- Parameters:
url - the URL for the feedstream - the InputStream for the feedencoding - the encoding of the data in the field, if known, or
null
- Returns:
- an RSSChannel object representing the RSS data from
the site.
- Throws:
java.io.IOException - unable to read from URL
RSSParserException - unable to parse RSS XML
Copyright © 2004-2006 Brian M. Clapper. All Rights Reserved.