Package com.sun.syndication.io

Examples of com.sun.syndication.io.FeedParser


        }
        catch (Exception ex) {
            throw new RuntimeException(ex);
        }
        for (int i=0;i<parsers.length;i++) {
            FeedParser parser = (FeedParser) parsers[i];
            list.add(parser);
        }
        return list;
    }
View Full Code Here


     * @param document document feed to find the parser for.
     * @return the parser for the given document or <b>null</b> if there is no parser for that document.
     *
     */
    public FeedParser getParserFor(Document document) {
        FeedParser parser = null;
        for (int i=0;parser==null && i<PARSERS.size();i++) {
            parser = (FeedParser) PARSERS.get(i);
            if (!parser.isMyType(document)) {
                parser = null;
            }
        }
        return parser;
    }
View Full Code Here

TOP

Related Classes of com.sun.syndication.io.FeedParser

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.