|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.johnmunsch.rss.Channel
Channel is the fundamental element of RSS library. You must have a channel before you can do anything because you must have an address from which the RSS data will be retrieved. Once you have a channel and that channel is associated with a URI you can retrieve the channel and get its current set of items.
| Constructor Summary | |
Channel()
Creates a bare channel object. |
|
Channel(java.lang.String _uri)
Creates a new Channel object and fills in a URI for it to use. |
|
Channel(java.lang.String _uri,
java.lang.String _title,
java.net.URL _link,
java.lang.String _description,
java.lang.String _language,
java.net.URL _imageURL,
java.net.URL _imageLink,
java.lang.String _imageDescription)
This constructor is mainly useful for those times when we already have complete information on the channel at the time we create it. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Two channels are treated as being equal if they both are retrieved from the same URI. |
java.lang.String |
getDescription()
A description of the RSS channel. |
java.lang.String |
getImageDescription()
Gets any description for the image. |
javax.swing.ImageIcon |
getImageIcon()
If a channel has an associated image (an optional element) then we can get it in ImageIcon form ready for drawing from this function. |
java.net.URL |
getImageLink()
Gets the address that the image should link to for the channel. |
java.net.URL |
getImageURL()
Gets the URL of the image (if any) for this RSS channel. |
java.lang.String |
getLanguage()
Returns a string describing the language of the RSS channel. |
java.util.Date |
getLastRetrieved()
Returns the last date when this channel was _successfully_ parsed. |
java.net.URL |
getLink()
Returns the main link for an RSS channel (this is usually the address of the main page for the website that generated the channel). |
java.lang.String |
getTitle()
Gets the title of an RSS channel (this is usually the name of the website which generated the channel). |
java.lang.String |
getURI()
The URI is what makes a channel a channel. |
java.util.List |
retrieve(boolean updateChannel)
Retrieves the current set of items for an RSS channel. |
java.lang.String |
setDescription(java.lang.String _description)
Allows setting the description of the RSS channel. |
java.lang.String |
setImageDescription(java.lang.String _imageDescription)
Allows setting the image description for the RSS channel. |
java.net.URL |
setImageLink(java.net.URL _imageLink)
Allows setting the address that the image should line to for the RSS channel. |
java.net.URL |
setImageURL(java.net.URL _imageURL)
Allows setting the image URL for the RSS channel. |
java.lang.String |
setLanguage(java.lang.String _language)
Allows setting the language of the RSS channel. |
java.net.URL |
setLink(java.net.URL _link)
Allows setting the link for an RSS channel. |
java.lang.String |
setTitle(java.lang.String _title)
Allows setting the title of an RSS channel. |
java.lang.String |
setURI(java.lang.String _uri)
This allows us to update the URI of a given channel. |
java.lang.String |
toString()
Genereates a nicely formatted string version of this object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Channel()
public Channel(java.lang.String _uri)
_uri - The address from which this RSS channel may be pulled.
public Channel(java.lang.String _uri,
java.lang.String _title,
java.net.URL _link,
java.lang.String _description,
java.lang.String _language,
java.net.URL _imageURL,
java.net.URL _imageLink,
java.lang.String _imageDescription)
_uri - The address from which this RSS channel may be pulled._title - The title of this RSS channel._link - A link to the homepage for the channel._description - A description of the channel._language - The channel's language._imageURL - The URL for an image (if any) that may be used to
represent the channel._imageLink - What the image links to (may be different from the
channel link above._imageDescription - A description associated with the image.| Method Detail |
public java.lang.String getURI()
public java.lang.String setURI(java.lang.String _uri)
public java.util.Date getLastRetrieved()
public javax.swing.ImageIcon getImageIcon()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List retrieve(boolean updateChannel)
public java.lang.String getTitle()
public java.lang.String setTitle(java.lang.String _title)
public java.net.URL getLink()
public java.net.URL setLink(java.net.URL _link)
public java.lang.String getDescription()
public java.lang.String setDescription(java.lang.String _description)
public java.lang.String getLanguage()
public java.lang.String setLanguage(java.lang.String _language)
public java.net.URL getImageURL()
public java.net.URL setImageURL(java.net.URL _imageURL)
public java.net.URL getImageLink()
public java.net.URL setImageLink(java.net.URL _imageLink)
public java.lang.String getImageDescription()
public java.lang.String setImageDescription(java.lang.String _imageDescription)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||