- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 38 of file FeedMacro.java.
◆ writeFeed()
static void org.turro.elephant.impl.feed.FeedMacro.writeFeed |
( |
IConstructor |
constructor, |
|
|
String |
feeds |
|
) |
| |
|
static |
Definition at line 40 of file FeedMacro.java.
41 PrintWriter out =
null;
43 Localizer localizer = constructor.getLocalizer();
44 out = constructor.getOut();
45 String[] url = feeds.split(
",");
46 SyndFeedInput input =
new SyndFeedInput();
48 out.print(
"<div class='rssreader'>");
49 for (
int i = 0; i < url.length; i++) {
50 feed = input.build(
new XmlReader(
new URL(url[i])));
51 renderFeed(feed, constructor);
54 }
catch (IllegalArgumentException ex) {
55 Logger.getLogger(FeedMacro.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
56 }
catch (FeedException ex) {
57 Logger.getLogger(FeedMacro.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
58 }
catch (IOException ex) {
59 Logger.getLogger(FeedMacro.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
The documentation for this class was generated from the following file: