it.sauronsoftware.feed4j
Class FeedParser

java.lang.Object
  extended by it.sauronsoftware.feed4j.FeedParser

public class FeedParser
extends java.lang.Object

The feed parser. It can parse RSS 1.0, RSS 2.0, Atom 0.3 and Atom 1.0.

Author:
Carlo Pelliccia

Constructor Summary
FeedParser()
           
 
Method Summary
static Feed parse(java.net.URL url)
          Gets the feed from an URL and parses it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedParser

public FeedParser()
Method Detail

parse

public static Feed parse(java.net.URL url)
                  throws FeedIOException,
                         FeedXMLParseException,
                         UnsupportedFeedException
Gets the feed from an URL and parses it.

Parameters:
url - The feed URL.
Returns:
A Feed object containing the information extracted from the feed.
Throws:
FeedIOException - I/O error during conetnts retrieving.
FeedXMLParseException - The document retrieved is not valid XML.
UnsupportedFeedException - The XML retrieved does not represents a feed whose kind is known by the parser.