de.nava.informa.parsers
Class OPMLParser

java.lang.Object
  extended by de.nava.informa.parsers.OPMLParser

public class OPMLParser
extends Object

OPML (Outline processor markup language) parser for to read in a collection of news channels (feeds) that will be made available as news channel object model.

Currently OPML version 1.1 is supported.

Author:
Niko Schmuck
See Also:
FeedIF

Method Summary
static Collection<FeedIF> parse(File aFile)
           
static Collection<FeedIF> parse(InputSource inpSource, URL baseLocation)
           
static Collection parse(InputStream stream)
           
static Collection parse(Reader reader)
           
static Collection parse(String url)
          Reads in a news feed definition from the specified URL.
static Collection parse(URL aURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static Collection parse(URL aURL)
                        throws IOException,
                               ParseException
Throws:
IOException
ParseException

parse

public static Collection parse(String url)
                        throws IOException,
                               ParseException
Reads in a news feed definition from the specified URL.

Returns:
A collection of FeedIF objects.
Throws:
IOException
ParseException

parse

public static Collection parse(Reader reader)
                        throws IOException,
                               ParseException
Throws:
IOException
ParseException

parse

public static Collection parse(InputStream stream)
                        throws IOException,
                               ParseException
Throws:
IOException
ParseException

parse

public static Collection<FeedIF> parse(File aFile)
                                throws IOException,
                                       ParseException
Throws:
IOException
ParseException

parse

public static Collection<FeedIF> parse(InputSource inpSource,
                                       URL baseLocation)
                                throws IOException,
                                       ParseException
Throws:
IOException
ParseException


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.