Package com.salas.bb.utils.parser

Examples of com.salas.bb.utils.parser.Channel


    public void update()
    {
        long updateTime = System.currentTimeMillis();

        // Fetch the feed data
        Channel channel = null;
        try
        {
            channel = fetchFeed();
        } catch (Exception e)
        {
            setInvalidnessReason(Strings.message("feed.invalidness.reason.bad.data"));
            LOG.log(Level.SEVERE, MessageFormat.format(Strings.error("feed.fetching.errored.internal.error"),
                toString()), e);
        }

        // Convert the list of items into articles before entering the
        // synchronized block to minimize locking
        StandardArticle[] articles = null;
        if (channel != null)
        {
            articles = new StandardArticle[channel.getItemsCount()];
            for (int i = 0; i < articles.length; i++) articles[i] = createArticle(channel.getItemAt(i));
        }

        synchronized (this)
        {
            if (channel != null)
View Full Code Here

TOP

Related Classes of com.salas.bb.utils.parser.Channel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.