org.clapper.curn.parser.informa
Class RSSParserAdapter
java.lang.Object
org.clapper.curn.parser.informa.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
Informa
RSS Parser. Informa supports the
0.91, 0.92,
1.0 and
2.0 RSS formats,
but does not support the
Atom format.
- Version:
- $Revision: 6305 $
- 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 of 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.