|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.rssowl.dao.NewsfeedFactory
This class initializes the parser with a InputStream from the RSSUrl
| Field Summary | |
private org.jdom.Document |
document
The builded document from the URL |
private FeedParser |
parser
Parser for the document |
private Channel |
rssChannel
Parsed Channel from the document |
(package private) String |
rssUrl
The URL to the RSS / RDF / Atom feed |
| Constructor Summary | |
NewsfeedFactory(Favorite rssOwlFavorite)
Create a new parser for the given URL to the RSS file |
|
NewsfeedFactory(String rssUrl)
Create a new parser for the given URL to the RSS file |
|
NewsfeedFactory(String rssUrl,
boolean ignoreRSS)
Create a new parser for the given URL to the RSS file |
|
| Method Summary | |
org.jdom.Document |
getDocument()
Get the parsed document |
Channel |
getRSSChannel()
Get the generated Channel |
(package private) void |
initXmlDocument(boolean forceDefaultEncoding)
Init a new XML Parser from the RSS XML |
private void |
initXMLParser()
Initialize the RSSOwlXMLParser with the given Document |
private org.jdom.Document |
openRSSFromLocal(org.jdom.input.SAXBuilder builder,
boolean forceDefaultEncoding)
Trys to open the RSS from the local path |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private org.jdom.Document document
private FeedParser parser
private Channel rssChannel
String rssUrl
| Constructor Detail |
public NewsfeedFactory(Favorite rssOwlFavorite)
throws NewsfeedFactoryException
rssOwlFavorite - A favorite from the favoritesTree
NewsfeedFactoryException - If an error occurs
public NewsfeedFactory(String rssUrl)
throws NewsfeedFactoryException
rssUrl - URL or Path to the RSS XML
NewsfeedFactoryException - If an error occurs
public NewsfeedFactory(String rssUrl,
boolean ignoreRSS)
throws NewsfeedFactoryException
rssUrl - URL or Path to the RSS XMLignoreRSS - ignoreRSS If TRUE its not intended to retrieve a RSS / RDF
XML InputStream
NewsfeedFactoryException - If an error occurs| Method Detail |
public org.jdom.Document getDocument()
public Channel getRSSChannel()
private void initXMLParser()
throws NewsfeedFactoryException
NewsfeedFactoryException
private org.jdom.Document openRSSFromLocal(org.jdom.input.SAXBuilder builder,
boolean forceDefaultEncoding)
throws NewsfeedFactoryException
builder - The XML builderforceDefaultEncoding - If set to TRUE the encoding is not being
detected from the XMl document and the OS default encoding is used
NewsfeedFactoryException - if an error occurs
void initXmlDocument(boolean forceDefaultEncoding)
throws NewsfeedFactoryException
forceDefaultEncoding - If set to TRUE the encoding is not being
detected from the XMl document and the OS default encoding is used
NewsfeedFactoryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||