Project 3

cscie259.project3.wahoo
Class NewsProvider

java.lang.Object
  extended bycscie259.project3.wahoo.NewsProvider

public final class NewsProvider
extends java.lang.Object

This class gets news headlines by connecting to Moreover. You MAY modify this file.

Version:
6.0
Author:
Computer Science E-259, YOUR NAME GOES HERE

Constructor Summary
private NewsProvider()
          Default constructor is private so that this utility class cannot be instantiated.
 
Method Summary
static java.lang.String getHeadlines(java.lang.String category)
          Returns an XML representation of the headlines for a given category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsProvider

private NewsProvider()
Default constructor is private so that this utility class cannot be instantiated.

Method Detail

getHeadlines

public static java.lang.String getHeadlines(java.lang.String category)
                                     throws java.io.IOException
Returns an XML representation of the headlines for a given category.

Parameters:
category - category for which to fetch headlines
Returns:
XML representation of headlines for given category
Throws:
java.io.IOException - if an IO-related error occurs

Project 3