public class FeedFormatter
extends java.lang.Object
FeedChannel messages into an html string for display.
With ideas from the rssamantha package.| Constructor and Description |
|---|
FeedFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static org.licas_xml.abs.Element |
formatToElement(java.lang.String rssFeed)
Create an XML document from the provided rss feed description that may contain
additional characters.
|
static org.licas_xml.abs.Element |
formatToElement(java.lang.String liveFeed,
java.util.ArrayList keyList)
Create an XML document from the provided rss feed description that may contain
additional characters.
|
static java.lang.String |
formatToHtml(java.util.ArrayList<Feed> feeds)
Format the list of feed messages into an html display.
|
public static java.lang.String formatToHtml(java.util.ArrayList<Feed> feeds)
feeds - list feeds to format and add as a single display. Remove
any repeated messages.public static org.licas_xml.abs.Element formatToElement(java.lang.String rssFeed)
rssFeed - the full feed description, where some entries are removed and
some character coding may occur.public static org.licas_xml.abs.Element formatToElement(java.lang.String liveFeed,
java.util.ArrayList keyList)
throws java.lang.Exception
liveFeed - the full feed description, where some entries are removed and
some character coding may occur.keyList - list of key names that elements to keep must have. Cannot be empty.java.lang.Exception - any error.