Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Update Feeds?

Help
Jacob
2011-10-26
2013-04-25
  • Jacob
    Jacob
    2011-10-26

    I am very new to using the Informa library. I cannot seem to figure out how to update my feed.

    Whenever I start my app for the first time it loads the feeds just fine. Then then I restart my app it loads the same (non-updated) feed.

    How do I force it to update every time I start the app?

    Here is my simple implementation:

    ChannelIF channel = FeedParser.parse(new ChannelBuilder(), "URL_to_my_feed");
    Set<ItemIF> posts = channel.getItems();
    for (Iterator<ItemIF> it = posts.iterator(); it.hasNext();) {
        ItemIF entry = it.next();
        System.out.println(entry.getDescription());
    }