edu.cmu.ri.createlab.rss.readers
Class MovieReader
java.lang.Object
edu.cmu.ri.createlab.rss.RSSReader
edu.cmu.ri.createlab.rss.readers.MovieReader
public class MovieReader
- extends RSSReader
MovieReader
accesses rottentomatoes movie listings.
MovieReader.java
Description: Reader class which utilizes the ROME library to read
RSS feed information from the Rottentomatoes RSS feed.
- Author:
- Daragh Egan
Constructor Summary |
MovieReader()
Construct moviereader |
Methods inherited from class edu.cmu.ri.createlab.rss.RSSReader |
getEntries, getEntriesPublishedAfterTimestamp, getEntryAuthor, getEntryCount, getEntryDate, getEntryDescription, getEntryLink, getEntryTitle, getFeedAuthor, getFeedDate, getFeedDescription, getFeedLink, getFeedTitle, updateFeed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MovieReader
public MovieReader()
- Construct moviereader
updateMovieFeed
public void updateMovieFeed()
- Updates the movie data from the web
getMovieCount
public int getMovieCount()
- Returns:
- The number of movies on the list
getTitle
public String getTitle()
- Returns:
- The rating and title of the movie at the index
getMovie
public String getMovie()
- Returns:
- The movie title at the index
getRating
public int getRating()
- Returns:
- The rating at the index
setIndex
public void setIndex(int in)
- Parameters:
in
- int new index value