|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuttress.rss.Rss
| Constructor Summary | |
Rss()
Default contructor sets all values to null |
|
Rss(Rss other)
Creates a Rss object repesenting the same values as another Rss object |
|
Rss(java.lang.String f)
Contructor for feed location |
|
Rss(java.lang.String t,
java.lang.String f)
Constructor for title link and feed url |
|
Rss(java.lang.String t,
java.lang.String f,
java.lang.String b,
java.lang.String bu)
Constructor for title link and feed url |
|
| Method Summary | |
boolean |
addItem(java.lang.Object rssItem)
Add an item to the list object or rss item |
void |
clearItems()
Clear all items from list |
boolean |
containsItem(java.lang.Object rssItem)
Returns true if item is already in the list |
static boolean |
downloadIt(RssItem item,
boolean autoStart)
downloads a new torrent if possible. |
void |
flushRssItems()
Flushes the list of Rss items |
java.lang.String |
getBtPath()
gets bittorrent client path |
java.lang.String |
getButFolder()
gets buttress folder path |
int |
getFeedSize()
used to access the private arraylist |
java.net.URL |
getFeedUrl()
Returns feedUrl component of the Rss object |
java.util.List |
getFilterList()
|
boolean |
getItemStatus(int pos)
Returns an item's status Integer indicates which item in the list |
RssItem |
getRssItem(int i)
Gets Rss Item at position i |
java.lang.String |
getTitle()
|
static boolean |
isGoodFeed(java.lang.String f)
|
java.util.List |
listAllItems()
returns a list of all of the items that are on the rss lists |
java.util.List |
listAllItems(java.util.List items)
returns a list of all of the items that are on the rss lists and adds new ones to the list that is passed |
void |
set(Rss other)
Sets the Rss object to the values of the other specified Rss object |
void |
setBtPath(java.lang.String p)
sets bittorrent client path |
void |
setButFolder(java.lang.String f)
sets buttress folder path |
void |
setFeedUrl(java.lang.String f)
Sets feed url component of the Rss object |
void |
setFilterList(java.util.List filterList)
|
void |
setNew(int i,
boolean isNew)
Changes the specified item's new status |
void |
setTitle(java.lang.String t)
Sets title component of the Rss object |
java.lang.String |
testToString(int i)
returns a string for a rssitem held in the arraylist |
java.lang.String |
toString()
Returns a sensible string of the Rss object |
java.util.List |
updateFeed(java.util.List filters)
updates the feed from the feedurl, and add the new items to the arraylist |
static java.lang.String |
userCheckUrl(Rss feed,
java.lang.String problemName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Rss()
public Rss(java.lang.String f)
f - url of feed of Rss
public Rss(java.lang.String t,
java.lang.String f)
t - title stringf - feed url
public Rss(java.lang.String t,
java.lang.String f,
java.lang.String b,
java.lang.String bu)
t - title stringf - feed urlb - bittorrent client pathbu - buttress folderpublic Rss(Rss other)
other - other Rss object| Method Detail |
public final void set(Rss other)
other - other Rss objectpublic java.lang.String getTitle()
public java.net.URL getFeedUrl()
public java.lang.String getBtPath()
public java.lang.String getButFolder()
public boolean getItemStatus(int pos)
pos - int
public java.util.List getFilterList()
public void setFilterList(java.util.List filterList)
filterList - the new list of filters to test againstpublic void setTitle(java.lang.String t)
t - Stringpublic void setBtPath(java.lang.String p)
p - pathpublic void setButFolder(java.lang.String f)
f - folderpublic void setFeedUrl(java.lang.String f)
f - String
public void setNew(int i,
boolean isNew)
i - Feed item to changeisNew - true = item is new, false = item is oldpublic java.lang.String toString()
public java.lang.String testToString(int i)
i - int
public boolean addItem(java.lang.Object rssItem)
rssItem - item object
public void clearItems()
public int getFeedSize()
public boolean containsItem(java.lang.Object rssItem)
rssItem - Object
public void flushRssItems()
public RssItem getRssItem(int i)
i - int
public java.util.List updateFeed(java.util.List filters)
throws java.lang.Exception
adds items only if the item is of interest (in the filter list)
sets description of items returned to the filters they matched.
filters - List
java.lang.Exception
public java.util.List listAllItems()
throws java.lang.Exception
java.lang.Exception
public java.util.List listAllItems(java.util.List items)
throws java.lang.Exception
items - List
java.lang.Exception
public static boolean downloadIt(RssItem item,
boolean autoStart)
item - the RssItem to downloadautoStart - boolean
public static boolean isGoodFeed(java.lang.String f)
f - String
public static java.lang.String userCheckUrl(Rss feed,
java.lang.String problemName)
feed - Rss the feed that the problem appears onproblemName - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||