BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.feed.FeedMacro Class Reference

Static Public Member Functions

static void writeFeed (IConstructor constructor, String feeds)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 38 of file FeedMacro.java.

Member Function Documentation

◆ writeFeed()

static void org.turro.elephant.impl.feed.FeedMacro.writeFeed ( IConstructor  constructor,
String  feeds 
)
static

Definition at line 40 of file FeedMacro.java.

40  {
41  PrintWriter out = null;
42  try {
43  Localizer localizer = constructor.getLocalizer();
44  out = constructor.getOut();
45  String[] url = feeds.split(",");
46  SyndFeedInput input = new SyndFeedInput();
47  SyndFeed feed;
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);
52  }
53  out.print("</div>");
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);
60  }
61  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: