It delegates to a FeedInput to handle all feed types.
@author Alejandro Abdelnur
363738394041424344454647
try { String outputType = args[0]; URL feedUrl = new URL(args[1]); SyndInput input = new SyndInput(); SyndFeedI feed = input.build(feedUrl.openStream()); SyndOutput output = new SyndOutput(outputType); output.output(feed,System.out); ok = true;
323334353637383940414243
boolean ok = false; if (args.length==1) { try { URL feedUrl = new URL(args[0]); SyndInput input = new SyndInput(); SyndFeedI feed = input.build(feedUrl.openStream()); System.out.println(feed); ok = true; }
515253545556575859606162
feed.setEntries(entries); for (int i=1;i<args.length;i++) { URL inputUrl = new URL(args[i]); SyndInput input = new SyndInput(); SyndFeedI inFeed = input.build(inputUrl.openStream()); entries.addAll(inFeed.getEntries()); }