boolean ok = false;
if (args.length>=2) {
try {
String outputType = args[0];
SyndFeedI aggrFeed = new SyndFeed();
aggrFeed.setFeedType(outputType);
aggrFeed.setTitle("Aggregated Feed");
aggrFeed.setDescription("Anonymous Aggregated Feed");
aggrFeed.setAuthor("anonymous");
aggrFeed.setLink("http://www.anonymous.com");
List entries = new ArrayList();
aggrFeed.setEntries(entries);
for (int i=1;i<args.length;i++) {
URL feedUrl = new URL(args[i]);
SyndFeedInput input = new SyndFeedInput();
SyndFeedI feed = input.build(getFeedReader(feedUrl));
entries.addAll(feed.getEntries());
}
SyndFeedOutput output = new SyndFeedOutput();
output.output(aggrFeed,new PrintWriter(System.out));