Package com.attribyte.parser.entry
Class RSSParser
java.lang.Object
com.attribyte.parser.entry.FeedParser
com.attribyte.parser.entry.RSSParser
- All Implemented Interfaces:
Parser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()The name of the parser.protected voidparseEntries(org.jsoup.nodes.Document doc, ContentCleaner contentCleaner, Resource.Builder resource) Parse all entries and add to the resource.protected Entry.BuilderparseEntry(org.jsoup.nodes.Element item, ContentCleaner contentCleaner, String baseUri) Parse an entry.protected voidparseSource(org.jsoup.nodes.Document doc, Resource.Builder resource) Parse the feed source properties.Methods inherited from class com.attribyte.parser.entry.FeedParser
addImage, addImage, image, parse
-
Constructor Details
-
RSSParser
public RSSParser()
-
-
Method Details
-
name
Description copied from interface:ParserThe name of the parser.- Returns:
- The name.
-
parseSource
Description copied from class:FeedParserParse the feed source properties.- Specified by:
parseSourcein classFeedParser- Parameters:
doc- The parsed document.resource- The resource to which source properties are added.
-
parseEntry
protected Entry.Builder parseEntry(org.jsoup.nodes.Element item, ContentCleaner contentCleaner, String baseUri) Description copied from class:FeedParserParse an entry.- Specified by:
parseEntryin classFeedParser- Parameters:
item- The entry element.contentCleaner- The content cleaner.baseUri- The base URI for relative references.- Returns:
- The parsed entry (builder).
-
parseEntries
protected void parseEntries(org.jsoup.nodes.Document doc, ContentCleaner contentCleaner, Resource.Builder resource) Description copied from class:FeedParserParse all entries and add to the resource.- Specified by:
parseEntriesin classFeedParser- Parameters:
doc- The parent document.contentCleaner- The content cleaner.resource- The resource.
-