|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectstockDataRetrieval.NewsDownloadEngine
Class contians functions support the fetching of news stories from Yahoo's web page
| Constructor Summary | |
NewsDownloadEngine()
|
|
| Method Summary | |
static java.lang.String |
constructBaseURL(java.lang.String ticker)
Creates the starting URL to begin downloading the news stories |
private static java.util.GregorianCalendar |
setTomorrowDate()
Gets a calendar object that is set to tomorrow's date. |
static boolean |
writeStoriesToFile(java.lang.String ticker,
java.util.ArrayList downloadedStories)
Writes the compiled list of stories to a file named "TICKER_news.txt" under the Data/NewsFiles directory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NewsDownloadEngine()
| Method Detail |
private static java.util.GregorianCalendar setTomorrowDate()
Used to get tomorrows date so that when fetching all news stories, the lastest stories are fetched.
public static java.lang.String constructBaseURL(java.lang.String ticker)
ticker - the name of the stock to begin getting news stories from
public static boolean writeStoriesToFile(java.lang.String ticker,
java.util.ArrayList downloadedStories)
ticker - the ticker of news stories being written to the filedownloadedStories - the list NewsObject stories to be written to the file
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||